diff options
Diffstat (limited to 'loleaflet/src/map/handler/Map.Scroll.js')
-rw-r--r-- | loleaflet/src/map/handler/Map.Scroll.js | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/loleaflet/src/map/handler/Map.Scroll.js b/loleaflet/src/map/handler/Map.Scroll.js index 9090fb042..9377f2d75 100644 --- a/loleaflet/src/map/handler/Map.Scroll.js +++ b/loleaflet/src/map/handler/Map.Scroll.js @@ -84,25 +84,9 @@ L.Map.Scroll = L.Handler.extend({ if (!delta) { return; } if (map.options.scrollWheelZoom === 'center') { - if (map.getDocType() === 'spreadsheet') { - if (delta > 0) { - map.setZoom(14); // 200% - } else { - map.setZoom(10); // 100% - } - } else { - map.setZoom(zoom + delta); - } + map.setZoom(zoom + delta); } else { // eslint-disable-next-line no-lonely-if - if (map.getDocType() === 'spreadsheet') { - if (delta > 0) { - map.setZoomAround(this._lastMousePos, 14); // 200% - } else { - map.setZoomAround(this._lastMousePos, 10); // 100% - } - } else { - map.setZoomAround(this._lastMousePos, zoom + delta); - } + map.setZoomAround(this._lastMousePos, zoom + delta); } } }); |