From 2a217a42b17e78814eecbe84028cf38b3f9327b7 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 28 Jan 2023 22:31:38 +1100 Subject: Adjust onEventDisplay() to be more reponsive --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.ts') 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(); -- cgit v1.2.3