From f1ae822dd1ea41893c646bad9720323a1fddca3b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 4 Apr 2016 07:59:49 +0000 Subject: [PATCH] Mobile theme W.I.P.: - Fix contextmenu is not working on Safari 9 --- phpgwapi/js/egw_action/egw_action_popup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/egw_action/egw_action_popup.js b/phpgwapi/js/egw_action/egw_action_popup.js index b6ddad015b..bbcaba21b6 100644 --- a/phpgwapi/js/egw_action/egw_action_popup.js +++ b/phpgwapi/js/egw_action/egw_action_popup.js @@ -291,7 +291,9 @@ function egwPopupActionImplementation() } return !e.cancelBubble; }; - + // Safari still needs the taphold to trigger contextmenu + // Chrome has default event on touch and hold which acts like right click + $j(_node).bind('taphold', contextHandler); $j(_node).on('contextmenu', contextHandler); };