diff --git a/AnimationFrame.js b/AnimationFrame.js index 988b160..91c1cb5 100644 --- a/AnimationFrame.js +++ b/AnimationFrame.js @@ -30,9 +30,7 @@ var now = Date.now, // There are some issues on ios6 // http://shitwebkitdoes.tumblr.com/post/47186945856/native-requestanimationframe-broken-on-ios-6 // https://gist.github.com/KrofDrakula/5318048 - nativeRequestAnimationFrame && nativeRequestAnimationFrame(function() { - hasNative = true; - }); + hasNative = nativeRequestAnimationFrame && !/iP(ad|hone|od).*OS (6|7)/.test(window.navigator.userAgent); }()); function AnimationFrame(frameRate) { diff --git a/AnimationFrame.min.js b/AnimationFrame.min.js index 4eb45d9..0f092ab 100644 --- a/AnimationFrame.min.js +++ b/AnimationFrame.min.js @@ -5,4 +5,4 @@ * @website https://github.com/kof/animationFrame * @license MIT */ -(function(window){"use strict";var now=Date.now,setTimeout=window.setTimeout,nativeRequestAnimationFrame,nativeCancelAnimationFrame,hasNative=false;(function(){var i,vendors=["ms","moz","webkit","o"];for(i=0;i