fix(deployment): clear scroll debounce on teardown
This commit is contained in:
parent
dcaaf2ed68
commit
7f35a2d98e
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,10 @@
|
||||||
clearTimeout(this.scrollTimeout);
|
clearTimeout(this.scrollTimeout);
|
||||||
this.scrollTimeout = null;
|
this.scrollTimeout = null;
|
||||||
}
|
}
|
||||||
|
if (this.scrollDebounce) {
|
||||||
|
clearTimeout(this.scrollDebounce);
|
||||||
|
this.scrollDebounce = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
disableFollow() {
|
disableFollow() {
|
||||||
if (!this.alwaysScroll) return;
|
if (!this.alwaysScroll) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue