mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(gesture): destroy gesture handler when it's done (#17184)
fixes #16433 fixes #16974
This commit is contained in:
@ -82,6 +82,10 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
componentDidUnload() {
|
||||
cancelAnimationFrame(this.rafId);
|
||||
clearTimeout(this.tmrId);
|
||||
if (this.gesture) {
|
||||
this.gesture.destroy();
|
||||
this.gesture = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
private setSelected(selectedIndex: number, duration: number) {
|
||||
|
Reference in New Issue
Block a user