From 52a5bf2a1f4df7f004a1821354626c97dbdd5c68 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Wed, 18 Sep 2024 12:30:04 +0300 Subject: [PATCH] Chore: Eslint (panzoom.js) --- web/js/panzoom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/js/panzoom.js b/web/js/panzoom.js index 32870f427..181ec4466 100644 --- a/web/js/panzoom.js +++ b/web/js/panzoom.js @@ -253,7 +253,9 @@ var zmPanZoom = { } if (this.panZoom[id].getScale().toFixed(1) > 1) { - this.panZoom[id].setOptions({handleStartEvent: (event) => {event.preventDefault()}}); + this.panZoom[id].setOptions({handleStartEvent: (event) => { + event.preventDefault(); + }}); } else { this.panZoom[id].setOptions({handleStartEvent: (event) => {}}); }