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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Aug 26 18:24:02 UTC 2018


 loleaflet/js/main.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 6d2ba49f9e7429b262de6a64e70703d036b6782d
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Sun Aug 26 11:52:50 2018 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Sun Aug 26 14:23:21 2018 -0400

    loleaflet: mobile: enable context menu
    
    Change-Id: If6d24d05cc59274b49059b9e05f91dcc0f6cdc6b

diff --git a/loleaflet/js/main.js b/loleaflet/js/main.js
index 4009109c5..e53a3117f 100644
--- a/loleaflet/js/main.js
+++ b/loleaflet/js/main.js
@@ -86,6 +86,8 @@ window.addEventListener('beforeunload', function () {
 	}
 });
 
-L.DomEvent.on(document, 'contextmenu', L.DomEvent.preventDefault);
+if (!L.Browser.mobile) {
+	L.DomEvent.on(document, 'contextmenu', L.DomEvent.preventDefault);
+}
 
 }(window));


More information about the Libreoffice-commits mailing list