slowed down the debouncer

This commit is contained in:
Jakob Pinterits
2024-06-15 23:03:49 +02:00
parent fe0312a55c
commit 23e9055b6f
+2 -2
View File
@@ -66,8 +66,8 @@ export class Debouncer {
// Determine thresholds. If the time is past at least one of these
// the call will be made.
let pauseThreshold =
this.mostRecentCallRequest + 3 * this.medianInterval;
let timeoutThreshold = this.mostRecentPerformedCall + 500;
this.mostRecentCallRequest + 5 * this.medianInterval;
let timeoutThreshold = this.mostRecentPerformedCall + 800;
let combinedThreshold = Math.min(pauseThreshold, timeoutThreshold);
// Call?