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