Skip to content

Commit a3e9f6d

Browse files
committedDec 6, 2015
Merge pull request #4654 from andreialecu/patch-1
fix(viewSwitcher): greatly improved perceived performance by using ionic.requestAnimationFrame
2 parents 2e3dd94 + 0218858 commit a3e9f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎js/angular/service/viewSwitcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function($timeout, $document, $q, $ionicClickBlock, $ionicConfig, $ionicNavBarDe
191191
if (renderStart && renderEnd) {
192192
// CSS "auto" transitioned, not manually transitioned
193193
// wait a frame so the styles apply before auto transitioning
194-
$timeout(onReflow, 16);
194+
ionic.requestAnimationFrame(onReflow);
195195

196196
} else if (!renderEnd) {
197197
// just the start of a manual transition

0 commit comments

Comments
 (0)