From 1eb75060f4232d24471dd2f5aef9251125d14036 Mon Sep 17 00:00:00 2001 From: thollander Date: Sun, 28 Apr 2019 00:01:05 +0200 Subject: [PATCH] Clean hack not useful anymore #1914 fixed a bug that had been hacked in the TopNav. Since it is now fixed, we can remove it. --- site/src/components/TopNav.svelte | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/site/src/components/TopNav.svelte b/site/src/components/TopNav.svelte index 49a1be50d1..3d273517e7 100644 --- a/site/src/components/TopNav.svelte +++ b/site/src/components/TopNav.svelte @@ -13,28 +13,6 @@ open = false; }); - // TODO remove this post-https://github.com/sveltejs/svelte/issues/1914 - let ul; - onMount(() => { - function handler(event) { - if (!open) { - event.preventDefault(); - event.stopPropagation(); - open = true; - } - } - - ul.addEventListener('touchstart', handler, { - capture: true - }); - - return () => { - ul.removeEventListener('touchstart', handler, { - capture: true - }); - }; - }); - // Prevents navbar to show/hide when clicking in docs sidebar let hash_changed = false; function handle_hashchange() { @@ -247,7 +225,6 @@ {/if}