mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
Extract useDebouncedCommit in propertyPanelPrimitives.tsx as the single debounce/commit mechanism (350ms, one preview/commit split) and flush (not cancel) any pending commit on unmount or target change instead of silently dropping the last edit. Route CommitField, MetricField, and SliderControl through it, and collapse the bespoke 350ms/pointer-move timers in propertyPanelColor.tsx and propertyPanelColorGradingSlider.tsx onto the same hook while preserving live preview.