www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 104434c674410da082b0e879896d74cb959a49fb
parent 79bd8996edb66d5492140fa6cd224ac395c8979c
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sun, 13 Sep 2015 11:27:54 -0400

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

Diffstat:
Munpacked/MathJax.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -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/);