Chore: Eslint (panzoom.js)

pull/4138/head
IgorA100 2024-09-18 12:30:04 +03:00 committed by GitHub
parent edf7f808b0
commit 52a5bf2a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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) => {}});
}