loleaflet/src/map/handler/Map.TouchGesture.js | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit fde71e7fcc5c84b4441a092261599f845f51ec9b Author: Henry Castro <hcas...@collabora.com> AuthorDate: Wed Jun 12 09:32:51 2019 -0400 Commit: Henry Castro <hcas...@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 <hcas...@collabora.com> Tested-by: Henry Castro <hcas...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits