Mobile theme W.I.P.:

- Fix contextmenu is not working on Safari 9
This commit is contained in:
Hadi Nategh 2016-04-04 07:59:49 +00:00
parent e9d1e81c49
commit f1ae822dd1

View File

@ -291,7 +291,9 @@ function egwPopupActionImplementation()
} }
return !e.cancelBubble; 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); $j(_node).on('contextmenu', contextHandler);
}; };