From 170d7a61f720ece9dc4b347b19f5a8213f1d8984 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 20 Jun 2020 16:50:49 +0200 Subject: viewer: prettier formatting based on eslint-prettier plugin --- viewer/src/services/dragscrollclickfix.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'viewer/src/services/dragscrollclickfix.ts') 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 @@ // https://github.com/donmbelembe/vue-dragscroll/issues/61 export default class DragScrollClickFix { - readonly DRAG_DELAY = 250; // This is the minimal delay to consider a click to be a drag, mostly usefull for touch devices timer: NodeJS.Timeout | null = null; @@ -39,7 +38,7 @@ export default class DragScrollClickFix { clearTimeout(this.timer); this.timer = null; } - setTimeout(() => this.dragging = false); + setTimeout(() => (this.dragging = false)); } onClickCapture(e: MouseEvent) { -- cgit v1.2.3