summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-10-31 14:36:17 +0000
committerMichael Meeks <michael.meeks@collabora.com>2019-11-01 15:29:20 +0000
commit823e2b2a929f213bb0b112c6f2394548804e9ea1 (patch)
tree03e231c77fd307387e38ab329eb80e49a3addd3b
parentce6afa85bed99e6a976647430b460b7136762e51 (diff)
Revert "Disable intermediate zoom levels on calc"
This reverts commit 12fa2aafa0735779beb260206f1c00b48cbdd2c8. Change-Id: Ib558243eb0583e0f96833caa5195022ebcc81c7d
-rw-r--r--loleaflet/src/map/handler/Map.Scroll.js20
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);
}
}
});