aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/services/dragscrollclickfix.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/services/dragscrollclickfix.ts')
-rw-r--r--viewer/src/services/dragscrollclickfix.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/viewer/src/services/dragscrollclickfix.ts b/viewer/src/services/dragscrollclickfix.ts
index 38eb106..7125510 100644
--- a/viewer/src/services/dragscrollclickfix.ts
+++ b/viewer/src/services/dragscrollclickfix.ts
@@ -19,7 +19,6 @@
19 19
20// https://github.com/donmbelembe/vue-dragscroll/issues/61 20// https://github.com/donmbelembe/vue-dragscroll/issues/61
21export default class DragScrollClickFix { 21export default class DragScrollClickFix {
22
23 readonly DRAG_DELAY = 250; // This is the minimal delay to consider a click to be a drag, mostly usefull for touch devices 22 readonly DRAG_DELAY = 250; // This is the minimal delay to consider a click to be a drag, mostly usefull for touch devices
24 23
25 timer: NodeJS.Timeout | null = null; 24 timer: NodeJS.Timeout | null = null;
@@ -39,7 +38,7 @@ export default class DragScrollClickFix {
39 clearTimeout(this.timer); 38 clearTimeout(this.timer);
40 this.timer = null; 39 this.timer = null;
41 } 40 }
42 setTimeout(() => this.dragging = false); 41 setTimeout(() => (this.dragging = false));
43 } 42 }
44 43
45 onClickCapture(e: MouseEvent) { 44 onClickCapture(e: MouseEvent) {