Swipe($event) doesn't work in mobile.but working in Broswer


#1

I am trying to swipe page left to right.

home.html

<ion-content padding (swipe)="swipeRight($event)">
     <h3>Ionic Page Starter</h3>
</ion-content>

home.ts

constructor(public navCtrl: NavController,private nativePageTransitions: NativePageTransitions) {
  }

swipeRight(e){
    alert(e.direction);
    
    let options: NativeTransitionOptions = {
      direction: 'left',
      duration: 400,
      slowdownfactor: -1,
      iosdelay: 50
     };
 
    this.nativePageTransitions.slide(options);
    this.navCtrl.setRoot('Page1');
  }

ionic info

Ionic:

   ionic (Ionic CLI)  : 4.3.1 (C:\Users\Tamil.$\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : not installed
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (1 plugins total)

System:

   NodeJS : v10.11.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10

Its working when swipe left to right on browser.
But not working in android device