-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed as duplicate of#22299
Labels
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
Swipe back runs the animation twice.
ScreenRecording_07-25-2024.10-45-41_1.MP4
Same as this old closed ticket #26058
Tried the solution here but does not work: #22299
await this.platform.ready().then((platform: string) => {
console.log({platform})
if (this.platform.is('ios')) {
const el = document.querySelector('ion-router-outlet');
console.log({el})
if (el) {
this.gesture = createGesture({
el,
gestureName: 'goback-swipe',
gesturePriority: 400,
threshold: 10,
onStart: () => false,
onMove: () => {},
onEnd: () => {},
});
this.gesture.enable(true);
}
}
});
also tried to disable swipe back, does not work
provideIonicAngular({
swipeBackEnabled: false,
}),
Expected Behavior
Swipe back should run the animation once only.
Steps to Reproduce
- follow your guide to instal the sidemenu app:
ionic start ionicLatest sidemenu
(I chose angular and standalone) - Run on ios PWA
Code Reproduction URL
https://ionicframework.com/docs/developing/starting
Ionic Info
Ionic:
Ionic CLI : 7.2.0
Ionic Framework : @ionic/angular 8.2.6
@angular-devkit/build-angular : 18.1.2
@angular-devkit/schematics : 18.1.2
@angular/cli : 18.1.2
@ionic/angular-toolkit : 11.0.1
Additional Information
No response
milang, instantrahmen, osca, jramosg, jsc31994 and 1 more