{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3890","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3890/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3890/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3890/events","html_url":"https://github.com/driftyco/ionic/issues/3890","id":85522359,"number":3890,"title":"`$ionicView.enter` event not called when 'swipe back transition' is cancelled [iOS]","user":{"login":"janakerman","id":3799225,"avatar_url":"https://avatars.githubusercontent.com/u/3799225?v=3","gravatar_id":"","url":"https://api.github.com/users/janakerman","html_url":"https://github.com/janakerman","followers_url":"https://api.github.com/users/janakerman/followers","following_url":"https://api.github.com/users/janakerman/following{/other_user}","gists_url":"https://api.github.com/users/janakerman/gists{/gist_id}","starred_url":"https://api.github.com/users/janakerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janakerman/subscriptions","organizations_url":"https://api.github.com/users/janakerman/orgs","repos_url":"https://api.github.com/users/janakerman/repos","events_url":"https://api.github.com/users/janakerman/events{/privacy}","received_events_url":"https://api.github.com/users/janakerman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T12:33:55Z","updated_at":"2015-06-05T12:33:55Z","closed_at":null,"body":"Firstly - I'm unsure as to whether this should be raised here or the forum, I'd be happy to repost this on the forum if it isn't the right place. I'm also not sure if this qualifies as a bug report or a feature request: \r\n\r\nIf you begin dragging right on the left edge of a view to transition to the previous view, you get the event `$ionicView.beforeLeave`. However, if you cancel that gesture before it has has passed the threshold to trigger a back transition you __don't__ get any events letting you know this was the case. I would expect to see the event `$ionicView.enter` to indicate that the view has finished animating back to its original state.\r\n\r\nA little bit of context - my use case for this is that I need to disable my full screen `ion-slide-box` `beforeLeave` as the slide box is animating its contents, along with the entire view. I re-enable the slide box when the `leave` event fires:\r\n    \r\n    $scope.$on('$ionicView.beforeLeave', function(){\r\n      $ionicSlideBoxDelegate.enableSlide(false);\r\n    });\r\n\r\n    $scope.$on('$ionicView.leave', function(){\r\n      $ionicSlideBoxDelegate.enableSlide(true);\r\n    });\r\n\r\nThe problem is that if the user cancels the gesture I don't have any obvious event to re-enable my slide box. I could be misunderstanding the best way to achieve this, but to me the obvious option seemed to use the transition events. Unfortunately, they don't cover all the events I'm interested in.\r\n\r\nHere's a link to a [Plunkr](http://plnkr.co/edit/h4JQjh56YZeedRmkkI7d?p=preview) - It might not be much help as the `beforeLeave` and `leave` events don't fire at all when loading it in Safari on my iPad, but they do with the same `.on` events in my Ionic application. This could be an issue in my Plunkr, or a completely separate issue altogether."}}