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

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 19 15:27:02 UTC 2019


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

New commits:
commit fde71e7fcc5c84b4441a092261599f845f51ec9b
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Jun 12 09:32:51 2019 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Mon Aug 19 17:26:44 2019 +0200

    loleaflet: mobile: prevent default action of the 'contextmenu' event
    
    Change-Id: I3f991dfc277548e5811c9342edd98775b3d51122
    Reviewed-on: https://gerrit.libreoffice.org/77735
    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 9c367daa8..c5735c670 100644
--- a/loleaflet/src/map/handler/Map.TouchGesture.js
+++ b/loleaflet/src/map/handler/Map.TouchGesture.js
@@ -58,6 +58,8 @@ L.Map.TouchGesture = L.Handler.extend({
 			L.DomEvent.on(document, L.Draggable.END[events], this._onDocUp, this);
 		}
 
+		L.DomEvent.on(document, 'contextmenu', L.DomEvent.preventDefault);
+
 		/// $.contextMenu does not support touch events so,
 		/// attach 'touchend' menu clicks event handler
 		if (this._hammer.input instanceof Hammer.TouchInput) {


More information about the Libreoffice-commits mailing list