Skip to content

Commit

Permalink
fix(nav): remove disabled-pointer-events
Browse files Browse the repository at this point in the history
Ensure `disable-pointer-events` has been removed if there is not
supposed to be an animated transition. Closes #1383 #1633
  • Loading branch information
adamdbradley committed Jul 21, 2014
1 parent 26ca840 commit 5b50e12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/angular/service/viewService.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function($rootScope, $state, $location, $document, $animate, $ionicPlatform, $io
return false;
}
$ionicPlatform.registerBackButtonAction(
onHardwareBackButton,
onHardwareBackButton,
PLATFORM_BACK_BUTTON_PRIORITY_VIEW
);

Expand Down Expand Up @@ -486,6 +486,8 @@ function($rootScope, $state, $location, $window, $injector, $animate, $ionicNavV
}
});
return;
} else if(!doAnimation) {
document.body.classList.remove('disable-pointer-events');
}

// no animation
Expand Down

0 comments on commit 5b50e12

Please sign in to comment.