From 5b50e120a116c182dcac2957800452e520450897 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 21 Jul 2014 10:34:54 -0500 Subject: [PATCH] fix(nav): remove disabled-pointer-events Ensure `disable-pointer-events` has been removed if there is not supposed to be an animated transition. Closes #1383 #1633 --- js/angular/service/viewService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/angular/service/viewService.js b/js/angular/service/viewService.js index 64a5082e15c..4e62039a93d 100644 --- a/js/angular/service/viewService.js +++ b/js/angular/service/viewService.js @@ -80,7 +80,7 @@ function($rootScope, $state, $location, $document, $animate, $ionicPlatform, $io return false; } $ionicPlatform.registerBackButtonAction( - onHardwareBackButton, + onHardwareBackButton, PLATFORM_BACK_BUTTON_PRIORITY_VIEW ); @@ -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