This commit is contained in:
2026-05-20 17:04:03 +10:00
parent e43ac21b2f
commit a9eeed30cf
8 changed files with 58 additions and 23 deletions

View File

@@ -82,7 +82,7 @@ export function useThrottledParameterValue(parameter, onParameterChange) {
}
};
const scheduleSendValue = (value, immediate = false) => {
const scheduleSendValue = (value, immediate = false, throttleMs = 90) => {
setDraftValue(value);
latestDraftRef.current = value;
isDirtyRef.current = true;
@@ -93,7 +93,6 @@ export function useThrottledParameterValue(parameter, onParameterChange) {
}
const now = Date.now();
const throttleMs = 90;
const elapsed = now - lastSentAtRef.current;
if (immediate || elapsed >= throttleMs) {