Skip to content

Commit 089f808

Browse files
committed
fix: scrollable action - prevent scrolling on supplied node by disabling touch-action
1 parent 009ec6f commit 089f808

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/directives/scrollable.js

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default (node, { y: yi = 0, step = scrollStep, maxSteps = Infinity }) =>
3838
node.addEventListener('wheel', wheelListener);
3939
node.addEventListener('touchstart', touchstartListener);
4040
node.addEventListener('touchmove', touchmoveListener);
41+
node.style.touchAction = 'none';
4142

4243
return {
4344
destroy() {

0 commit comments

Comments
 (0)