Add mobile detection for Chrome and enable alternate context menu trigger (double-tap and hold)

This commit is contained in:
Davide P. Cervone 2015-09-13 11:27:54 -04:00
parent 79bd8996ed
commit 104434c674

View File

@ -3180,6 +3180,9 @@ MathJax.Hub.Startup = {
AGENT.match(/ Fennec\//) != null ||
AGENT.match(/Mobile/) != null);
},
Chrome: function (browser) {
browser.noContextMenu = browser.isMobile = !!navigator.userAgent.match(/ Mobile[ \/]/);
},
Opera: function (browser) {browser.version = opera.version()},
Edge: function (browser) {
browser.isMobile = !!navigator.userAgent.match(/ Phone/);