Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 651b2cb

Browse files
author
Łukasz Florczak
committed
Fix disableScroll()
Resolve: #86
1 parent adcf622 commit 651b2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Agile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@
409409
},
410410
411411
handleMouseMove (e) {
412-
this.disableScroll()
413412
let positionX = ('ontouchstart' in window) ? e.touches[0].clientX : e.clientX
414413
let positionY = ('ontouchstart' in window) ? e.touches[0].clientY : e.clientY
415414
let dragDistanceX = Math.abs(positionX - this.dragStartX)
416415
let dragDistanceY = Math.abs(positionY - this.dragStartY)
417416
if (dragDistanceX > 3 * dragDistanceY) {
417+
this.disableScroll()
418418
this.dragDistance = positionX - this.dragStartX
419419
}
420420
},

0 commit comments

Comments
 (0)