diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-28 22:31:38 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-28 22:31:38 +1100 |
| commit | 2a217a42b17e78814eecbe84028cf38b3f9327b7 (patch) | |
| tree | ad67bbfd0f5763f2bf3e44e04ef8a95bac662f0f /src/util.ts | |
| parent | 0d8eba5548db35d13cda6d4632786afba6140e1e (diff) | |
Adjust onEventDisplay() to be more reponsive
Diffstat (limited to 'src/util.ts')
| -rw-r--r-- | src/util.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.ts b/src/util.ts index 96741b2..587ad66 100644 --- a/src/util.ts +++ b/src/util.ts @@ -54,7 +54,7 @@ export function makeThrottledSpaced(hdlr: (...args: any[]) => void, delay: numbe hdlr(...args); lastHdlrTime = new Date().getTime(); } else { - endHdlr = window.setTimeout(async () => { + endHdlr = window.setTimeout(() => { endHdlr = 0; hdlr(...args); lastHdlrTime = new Date().getTime(); |
