We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a6274 commit 6da9882Copy full SHA for 6da9882
packages/core/src/components/scroll/scroll.tsx
@@ -85,6 +85,12 @@ export class Scroll {
85
}
86
87
88
+ componentDidUnload() {
89
+ if (this.watchDog) {
90
+ clearInterval(this.watchDog);
91
+ }
92
93
+
94
@Listen('scroll', { passive: true })
95
onScroll(ev: UIEvent) {
96
const timeStamp = Date.now();
@@ -220,6 +226,9 @@ export class Scroll {
220
226
isScrolling: true
221
227
});
222
228
229
230
231
223
232
// watchdog
224
233
this.watchDog = setInterval(() => {
225
234
if (this.lastScroll < Date.now() - 120) {
0 commit comments