From 5653cbd96033a531fbfbdba8075afb8313c37c05 Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Wed, 7 Apr 2021 15:18:37 +0200 Subject: [PATCH] fix: changed setTimeout to self.setTimeout for type-safety --- src/internal/scroll.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/internal/scroll.ts b/src/internal/scroll.ts index fb0d3ff..113cd40 100644 --- a/src/internal/scroll.ts +++ b/src/internal/scroll.ts @@ -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;