UI fix
All checks were successful
CI / React UI Build (push) Successful in 10s
CI / Native Windows Build And Tests (push) Successful in 2m26s
CI / Windows Release Package (push) Successful in 2m28s

This commit is contained in:
Aiden
2026-05-10 21:27:13 +10:00
parent 8fcb51d140
commit 46129a6044
6 changed files with 142 additions and 76 deletions

View File

@@ -34,6 +34,27 @@ export function useThrottledParameterValue(parameter, onParameterChange) {
}
}, [draftValue, currentValue]);
useEffect(() => {
if (isInteractingRef.current) {
return;
}
if (valuesMatch(currentValue, latestDraftRef.current)) {
return;
}
if (pendingTimeoutRef.current) {
clearTimeout(pendingTimeoutRef.current);
pendingTimeoutRef.current = null;
}
setDraftValue(currentValue);
setAppliedValue(currentValue);
latestDraftRef.current = currentValue;
isDirtyRef.current = false;
lastSentAtRef.current = 0;
}, [currentValue]);
useEffect(() => {
return () => {
if (pendingTimeoutRef.current) {