Merge pull request #3419 from IvanSanchez/browser-ffx-mobile

Detect Firefox for Android as L.Browser.mobile
This commit is contained in:
Vladimir Agafonkin 2015-04-30 15:15:33 +03:00
commit 828ceea07f

View File

@ -13,8 +13,9 @@
phantomjs = ua.indexOf('phantom') !== -1,
android23 = ua.search('android [23]') !== -1,
chrome = ua.indexOf('chrome') !== -1,
gecko = ua.indexOf('gecko') !== -1 && !webkit && !window.opera && !ie,
mobile = typeof orientation !== 'undefined',
mobile = typeof orientation !== 'undefined' || ua.indexOf('mobile') !== -1,
msPointer = navigator.msPointerEnabled && navigator.msMaxTouchPoints && !window.PointerEvent,
pointer = (window.PointerEvent && navigator.pointerEnabled && navigator.maxTouchPoints) || msPointer,
@ -30,7 +31,7 @@
ie: ie,
ielt9: ie && !document.addEventListener,
webkit: webkit,
gecko: (ua.indexOf('gecko') !== -1) && !webkit && !window.opera && !ie,
gecko: gecko,
android: ua.indexOf('android') !== -1,
android23: android23,
chrome: chrome,
@ -46,6 +47,7 @@
mobileWebkit: mobile && webkit,
mobileWebkit3d: mobile && webkit3d,
mobileOpera: mobile && window.opera,
mobileGecko: mobile && gecko,
touch: !!touch,
msPointer: !!msPointer,