From 24c172159081fa731241ac63341ddf5913c36a3c Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 12 May 2015 14:56:24 -0300 Subject: [PATCH] disable anims in old android phones --- src/js/routes.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/routes.js b/src/js/routes.js index 1f681c824..95797ca79 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -1,10 +1,10 @@ 'use strict'; -var unsupported; +var unsupported, isaosp; if (window && window.navigator) { var rxaosp = window.navigator.userAgent.match(/Android.*AppleWebKit\/([\d.]+)/); - var isaosp = (rxaosp && rxaosp[1] < 537); + isaosp = (rxaosp && rxaosp[1] < 537); if (!window.cordova && isaosp) unsupported = true; if (unsupported) { @@ -442,6 +442,9 @@ angular function animateTransition(fromState, toState, event) { + if (isaosp) + return true; + // Animation in progress? var x = document.getElementById('mainSectionDup'); if (x && !cachedTransitionState) {