Skip to content

Commit

Permalink
fix: changed setTimeout to self.setTimeout for type-safety
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed Apr 7, 2021
1 parent 25345cc commit 5653cbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/internal/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ class ScrollHandler {
if (handler.handler.length === 0) {
return;
}
// eslint-disable-next-line no-restricted-globals
// eslint-disable-next-line no-param-reassign
handler.timer = setTimeout(() => {
// eslint-disable-next-line no-param-reassign, no-restricted-globals
handler.timer = self.setTimeout(() => {
this.handle(handler);
// eslint-disable-next-line no-param-reassign
handler.timer = -1;
Expand Down

0 comments on commit 5653cbd

Please sign in to comment.