Skip to content

Commit 98f8ac1

Browse files
committed
fix: add stopPropagation to touch events
1 parent 38c529e commit 98f8ac1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/components/generic/Scrollable.svelte

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
};
1313
</script>
1414

15-
<div on:wheel={wheel} on:touchstart={touchstart} on:touchmove={touchmove}>
15+
<div
16+
on:wheel={wheel}
17+
on:touchstart|stopPropagation={touchstart}
18+
on:touchmove|stopPropagation={touchmove}
19+
>
1620
<slot />
1721
</div>
1822

0 commit comments

Comments
 (0)