Skip to content

Commit

Permalink
fix(viewSwitcher): use ionic.requestAnimationFrame
Browse files Browse the repository at this point in the history
This greatly improves perceived performance, especially on Android, and fixes
#3907
  • Loading branch information
andreialecu committed Nov 21, 2015
1 parent c5a4f7d commit 0218858
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

2 comments on commit 0218858

@danielptn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but where i found this file??
in my project don't have this directories..

@foram-patel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly i am also having same question...
where i can find this file to be changed????
please help...

Please sign in to comment.