[Libreoffice-commits] online.git: loleaflet/src

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 20 15:14:39 UTC 2019


 loleaflet/src/map/handler/Map.TouchGesture.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e291c42435097209b8c6b5eefb0d970dd30b846e
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Jul 10 10:23:16 2019 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Tue Aug 20 17:14:22 2019 +0200

    loleaflet: mobile: avoid long press event when a graphic is panning
    
    Change-Id: I6ba8987e86f304b59336cb473d3fc023819da43e
    Reviewed-on: https://gerrit.libreoffice.org/77841
    Reviewed-by: Henry Castro <hcastro at collabora.com>
    Tested-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js b/loleaflet/src/map/handler/Map.TouchGesture.js
index a48a316b6..331adff01 100644
--- a/loleaflet/src/map/handler/Map.TouchGesture.js
+++ b/loleaflet/src/map/handler/Map.TouchGesture.js
@@ -163,7 +163,7 @@ L.Map.TouchGesture = L.Handler.extend({
 		    latlng = this._map.layerPointToLatLng(layerPoint),
 		    mousePos = this._map._docLayer._latLngToTwips(latlng);
 
-		if (this._state === L.Map.TouchGesture.MARKER) {
+		if (this._state === L.Map.TouchGesture.MARKER || this._state === L.Map.TouchGesture.GRAPHIC) {
 			return;
 		}
 


More information about the Libreoffice-commits mailing list