mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -379,9 +379,7 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
const delta = computeDelta(detail.deltaX, this._isOpen, this.isEndSide);
|
||||
const stepValue = delta / this.width;
|
||||
|
||||
this.animation
|
||||
|
||||
.progressStep(stepValue);
|
||||
this.animation.progressStep(stepValue);
|
||||
}
|
||||
|
||||
private onEnd(detail: GestureDetail) {
|
||||
@ -491,6 +489,10 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
this.backdropEl.classList.remove(SHOW_BACKDROP);
|
||||
}
|
||||
|
||||
if (this.animation) {
|
||||
this.animation.stop();
|
||||
}
|
||||
|
||||
// emit close event
|
||||
this.ionDidClose.emit();
|
||||
}
|
||||
|
@ -1031,7 +1031,7 @@ export const createAnimation = () => {
|
||||
});
|
||||
|
||||
if (initialized) {
|
||||
cleanUp();
|
||||
cleanUpElements();
|
||||
initialized = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user