diff options
-rw-r--r-- | src/browser/mq4-hover-hover-shim.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/browser/mq4-hover-hover-shim.js b/src/browser/mq4-hover-hover-shim.js index 5477d13..654141d 100644 --- a/src/browser/mq4-hover-hover-shim.js +++ b/src/browser/mq4-hover-hover-shim.js @@ -10,9 +10,9 @@ */ export function supportsTrueHover() { if (!window.matchMedia) { - // Opera Mini, IE<=9, ancient, or obscure; per http://caniuse.com/#feat=matchmedia + // Opera Mini, IE<=9, Android<=2.3, ancient, or obscure; per http://caniuse.com/#feat=matchmedia - // Opera Mini and IE Mobile don't support true hovering, so they're what we'll check for. + // Opera Mini, Android, and IE Mobile don't support true hovering, so they're what we'll check for. // Other browsers are either: // (a) obscure // (b) touch-based but old enough not to attempt to emulate hovering @@ -22,7 +22,7 @@ export function supportsTrueHover() { // IE Mobile <9 seems to always have "Windows CE", "Windows Phone", or "IEMobile" in its UA string. // IE Mobile 9 in desktop view doesn't include "IEMobile" or "Windows Phone" in the UA string, // but it instead includes "XBLWP7" and/or "ZuneWP7". - return !/Opera Mini|IEMobile|Windows (Phone|CE)|(XBL|Zune)WP7/.test(navigator.userAgent); + return !/Opera Mini|Android|IEMobile|Windows (Phone|CE)|(XBL|Zune)WP7/.test(navigator.userAgent); } // CSSWG Media Queries Level 4 draft |