Skip to content

Commit

Permalink
fix: add stopPropagation to touch events
Browse files Browse the repository at this point in the history
  • Loading branch information
6eDesign committed Sep 16, 2021
1 parent 38c529e commit 98f8ac1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/components/generic/Scrollable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
};
</script>

<div on:wheel={wheel} on:touchstart={touchstart} on:touchmove={touchmove}>
<div
on:wheel={wheel}
on:touchstart|stopPropagation={touchstart}
on:touchmove|stopPropagation={touchmove}
>
<slot />
</div>

Expand Down

0 comments on commit 98f8ac1

Please sign in to comment.