Skip to content

Commit

Permalink
Chore: Eslint (panzoom.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorA100 authored Sep 18, 2024
1 parent edf7f80 commit 52a5bf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/js/panzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {}});
}
Expand Down

0 comments on commit 52a5bf2

Please sign in to comment.