(not) impressive mobile detection and forcing fallback mode for iOS and Android (as they support CSS 3D transforms)

This commit is contained in:
Bartek Szopka
2012-01-01 10:52:26 +01:00
parent 53862c9f9a
commit 0ece4dbfb3

View File

@@ -85,7 +85,9 @@
// CHECK SUPPORT // CHECK SUPPORT
var impressSupported = (pfx("perspective") != null); var ua = navigator.userAgent.toLowerCase();
var impressSupported = ( pfx("perspective") != null ) &&
( ua.search(/(iphone)|(ipod)|(ipad)|(android)/) == -1 );
// DOM ELEMENTS // DOM ELEMENTS