[Libreoffice-commits] online.git: loleaflet/src
Andras Timar
andras.timar at collabora.com
Thu Nov 24 14:12:52 UTC 2016
loleaflet/src/map/handler/Map.TouchZoom.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit c8fa6cb5b0d69493c03ac65fe2dfa70cd7cd34ca
Author: Andras Timar <andras.timar at collabora.com>
Date: Thu Nov 24 15:11:55 2016 +0100
loleaflet: disable zoom for spreadsheet even on touchscreens
diff --git a/loleaflet/src/map/handler/Map.TouchZoom.js b/loleaflet/src/map/handler/Map.TouchZoom.js
index e8b3754..43f7589 100644
--- a/loleaflet/src/map/handler/Map.TouchZoom.js
+++ b/loleaflet/src/map/handler/Map.TouchZoom.js
@@ -29,7 +29,12 @@ L.Map.TouchZoom = L.Handler.extend({
this._startDist = p1.distanceTo(p2);
this._moved = false;
- this._zooming = true;
+ if (map.getDocType() === 'spreadsheet') {
+ this._zooming = false;
+ }
+ else {
+ this._zooming = true;
+ }
this._centerOffset = viewCenter.subtract(this._startCenter);
More information about the Libreoffice-commits
mailing list