Skip to content

Commit 7e59866

Browse files
committed
Fix: touch cancel listener was set for mouse devices 😅
1 parent 94c61e4 commit 7e59866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recognizers/DragRecognizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export default class DragRecognizer extends CoordinatesRecognizer<'drag'> {
5858
? [
5959
['touchmove', this.onDragChange],
6060
['touchend', this.onDragEnd],
61+
['touchcancel', this.onDragEnd],
6162
]
6263
: [
63-
['touchcancel', this.onDragEnd],
6464
['mousemove', this.onDragChange],
6565
['mouseup', this.onDragEnd],
6666
]

0 commit comments

Comments
 (0)