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 0a758a5 commit 8cb6de9Copy full SHA for 8cb6de9
src/atoms/Slicer.vue
@@ -359,21 +359,15 @@ function handleDragging(event) {
359
};
360
361
function handleTouchDragging(event) {
362
- if (event.target.classList.contains('range-handle')) {
+ if (!zoomWrapper.value.contains(event.target)) {
363
+ // Allow scrolling
364
return;
365
}
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
+ if (event.target.classList.contains('range-handle')) {
371
372
373
374
- if (event.cancelable) {
375
- event.preventDefault();
376
- }
+ event.preventDefault();
377
updateDragging(event.targetTouches[0].clientX);
378
379
0 commit comments