Try add configurable threshold for events throttling (#147)

This commit is contained in:
mpstv
2026-04-01 12:00:00 +08:00
committed by yz-yu
parent 9f1f31fb85
commit 84de337040
3 changed files with 7 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ function record(options: recordOptions = {}): listenerHandler | undefined {
inlineStylesheet = true,
maskAllInputs = false,
hooks,
mousemoveWait = 50
} = options;
// runtime checks for user options
if (!emit) {
@@ -181,6 +182,7 @@ function record(options: recordOptions = {}): listenerHandler | undefined {
ignoreClass,
maskAllInputs,
inlineStylesheet,
mousemoveWait
},
hooks,
),