aboutsummaryrefslogtreecommitdiff
path: root/src/util.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-28 22:31:38 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-28 22:31:38 +1100
commit2a217a42b17e78814eecbe84028cf38b3f9327b7 (patch)
treead67bbfd0f5763f2bf3e44e04ef8a95bac662f0f /src/util.ts
parent0d8eba5548db35d13cda6d4632786afba6140e1e (diff)
Adjust onEventDisplay() to be more reponsive
Diffstat (limited to 'src/util.ts')
-rw-r--r--src/util.ts2
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();