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 00901d6 commit 6bacf87Copy full SHA for 6bacf87
projects/multiselect/src/lib/directives/virtual-scroll.directive.ts
@@ -60,11 +60,13 @@ export class VirtualScrollDirective {
60
if (!this.scrollTimer) {
61
if (now - this.lastScrollFireTime > minScrollTime) {
62
this.lastScrollFireTime = now;
63
+ clearTimeout(this.scrollTimer);
64
+ this.scrollTimer = null;
65
}
66
this.scrollTimer = setTimeout(() => {
- this.scrollTimer = null;
67
this.lastScrollFireTime = new Date().getTime();
68
this.throttleScroll(target);
69
70
}, minScrollTime);
71
72
0 commit comments