Fix animation to use hardware acceleration
This commit is contained in:
parent
8b7578ef25
commit
86ded3d30a
3 changed files with 41 additions and 14 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue