Mobile Safari has a different user agent when standalone.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 17 Sep 2014 22:31:04 +0000 (00:31 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 17 Sep 2014 22:31:04 +0000 (00:31 +0200)
BUGS.org
src/yuu/core.js

index 8e3d138..476ad5c 100644 (file)
--- a/BUGS.org
+++ b/BUGS.org
@@ -1,3 +1,9 @@
+* Next Version
+** Remove CSS pixel ratio > 1 support in Safari
+   Mac OS X Safari has scaling bugs, and iOS Safari has lower
+   performance.
+
+
 * v1.2
 ** DONE Override the GPU blacklist on GNU/Linux
    This is a security measure Chromium enables for normal web
    version for iOS 8.
 ** TODO iOS 8 iPad 3 [0/3]
 *** TODO Stalls a few seconds in
-    But the stall is uneven - affects some but not all
-    visuals, visuals but not music, etc.
+    But the stall is uneven - affects some but not all visuals, or
+    sometimes visuals but not music, etc. It's like the event loop is
+    running but the front buffer is not flipping in.
+
+    The stalls almost disappear when connecting with desktop Safari
+    remote debugging, which... is confusing.
 *** TODO Choppy / staticy audio when backgrounding
+    There's probably no way to avoid this, other than trying to cut
 *** TODO Noise shader is way too expensive
+    Need some way to establish platform performance capabilities and
+    scale down effects when performance is bad. And, without any kind
+    of user configuration.
+*** TODO Audio gets desynchronized
+    Not worth looking into until the general stalls are fixed,
+    since they might be causing it.
index 24e3f2b..1d64e98 100644 (file)
@@ -8,7 +8,8 @@
     "use strict";
 
     yuu.isSafari = function (ua) {
-        return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent);
+        return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent)
+            || navigator.standalone;
     };
 
     yuu.require = function (m) {