Fix animation to use hardware acceleration

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-11 12:53:29 -03:00
commit 86ded3d30a
3 changed files with 41 additions and 14 deletions

View file

@ -484,8 +484,11 @@ angular
importLegacy: 12
};
$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams) {
$rootScope.$on('$stateChangeSuccess', function() {
$rootScope.$emit('Animation/Disable');
});
$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams) {
if (pageWeight[fromState.name] > pageWeight[toState.name]) {
$rootScope.$emit('Animation/SwipeRight');