loleaflet/src/map/handler/Map.TouchZoom.js |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit c8fa6cb5b0d69493c03ac65fe2dfa70cd7cd34ca
Author: Andras Timar <andras.ti...@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);
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to