From 0ece4dbfb3bf08d90b1e3f6f9b0b0d32f3d18be0 Mon Sep 17 00:00:00 2001 From: Bartek Szopka Date: Sun, 1 Jan 2012 10:52:26 +0100 Subject: [PATCH] (not) impressive mobile detection and forcing fallback mode for iOS and Android (as they support CSS 3D transforms) --- js/impress.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/impress.js b/js/impress.js index c27192a..36bd5bf 100644 --- a/js/impress.js +++ b/js/impress.js @@ -85,7 +85,9 @@ // 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