diff options
author | Zero~Informatique | 2020-06-20 16:50:49 +0200 |
---|---|---|
committer | OzoneGrif | 2020-06-28 14:11:13 +0200 |
commit | 170d7a61f720ece9dc4b347b19f5a8213f1d8984 (patch) | |
tree | 3a7af0595faea4a98437f8f73b3172529bda3a1d /viewer/src/services/dragscrollclickfix.ts | |
parent | 06355c9cebce469d3d827d48043387144c2458a5 (diff) | |
download | ldgallery-170d7a61f720ece9dc4b347b19f5a8213f1d8984.tar.gz |
viewer: prettier formatting based on eslint-prettier plugin
Diffstat (limited to 'viewer/src/services/dragscrollclickfix.ts')
-rw-r--r-- | viewer/src/services/dragscrollclickfix.ts | 3 |
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 |
21 | export default class DragScrollClickFix { | 21 | export 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) { |