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.
pull/2598/head
thollander 7 years ago
parent 831926bccd
commit 1eb75060f4

@ -13,28 +13,6 @@
open = false; 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 // Prevents navbar to show/hide when clicking in docs sidebar
let hash_changed = false; let hash_changed = false;
function handle_hashchange() { function handle_hashchange() {
@ -247,7 +225,6 @@
{/if} {/if}
<ul <ul
bind:this={ul}
class="primary" class="primary"
class:open class:open
on:mouseenter="{() => open = true}" on:mouseenter="{() => open = true}"

Loading…
Cancel
Save