Skip to content

Commit

Permalink
Merge pull request #4654 from andreialecu/patch-1
Browse files Browse the repository at this point in the history
fix(viewSwitcher): greatly improved perceived performance by using ionic.requestAnimationFrame
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents 2e3dd94 + 0218858 commit a3e9f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/service/viewSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function($timeout, $document, $q, $ionicClickBlock, $ionicConfig, $ionicNavBarDe
if (renderStart && renderEnd) {
// CSS "auto" transitioned, not manually transitioned
// wait a frame so the styles apply before auto transitioning
$timeout(onReflow, 16);
ionic.requestAnimationFrame(onReflow);

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

0 comments on commit a3e9f6d

Please sign in to comment.