When transitioning between states in an AngularJS application, I utilize CSS animations to add visual appeal to the view change. This may involve applying fades or transforms using classes like .ng-enter
and .ng-leave
.
In iOS 7+, users can swipe their finger off the screen edge to navigate between pages, creating a back or forward action equivalent to clicking toolbar buttons. However, this native OS animation conflicts with AngularJS transitions, resulting in double animations and a flickering effect as content reappears on the screen. How can we address this issue for a smoother user experience?
I have considered disabling animations specifically for iOS 7+ to prevent this problem. However, it is crucial to only disable animations during finger swipes, not traditional clicks or browser button navigation. Unfortunately, detecting this scenario seems challenging. Any insights or solutions from others who have faced similar challenges?