I have an Angular application with some router animations. When navigation from A to B, this looks as intended. When navigating back from B to A by clicking an in-app back button or a browser back button, the reversed animation also looks good.
The issue arises when a mobile user navigates back from B to A by using a swipe gesture. The swipe itself creates a sort of animation (revealing the previous page ase you slide your finger), but after this navigation has ended, my in-app animations still trigger, which looks pretty jarring.
Is there a way to detect if the user performed the back navigation by swiping so I can disable my Angular animations?