I'd like to capture swipe navigate gestures based on android device exists on left-right corners.If sounds not familiar please take a look at the image below here its when I demonstrated.
On the app.component I implemented swipe event from Hammer.js like below but when I do that swipe it doesn't work which is not triggered.Only does when I swipe not exactly from left or right corner.Some people might be asking why I'm not dealing this with popState event.I already destroyed it for a purpose thats why itsn't reachable anymore.I have to deal with navigation via indetifying left or right swipe applied to choose navigate.back() or navigate.forward() methods of JavaScript.
App.Component.Html
<main (swipeleft)="swipe('left')" (swiperight)="swipe('right')">
<router-outlet></router-outlet>
</main>
App.Component.ts
swipe(direction: string) {
// navigation.back() or navigation.forward() regarding left or right swipe
}
