We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9cca6 commit cc4beb1Copy full SHA for cc4beb1
src/atoms/Slicer.vue
@@ -362,7 +362,18 @@ function handleTouchDragging(event) {
362
if (event.target.classList.contains('range-handle')) {
363
return;
364
}
365
- event.preventDefault();
+
366
+ const touch = event.targetTouches[0];
367
+ const deltaY = Math.abs(touch.clientY - initialMouseX.value);
368
369
+ if (deltaY > dragThreshold.value) {
370
+ // Allow vertical scroll
371
+ return;
372
+ }
373
374
+ if (event.cancelable) {
375
+ event.preventDefault();
376
377
updateDragging(event.targetTouches[0].clientX);
378
};
379
0 commit comments