File tree Expand file tree Collapse file tree
src/components/video-editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ interface SettingsPanelProps {
9494 onBlurChange ?: ( showBlur : boolean ) => void ;
9595 motionBlurAmount ?: number ;
9696 onMotionBlurChange ?: ( amount : number ) => void ;
97+ onMotionBlurCommit ?: ( ) => void ;
9798 borderRadius ?: number ;
9899 onBorderRadiusChange ?: ( radius : number ) => void ;
99100 onBorderRadiusCommit ?: ( ) => void ;
@@ -159,6 +160,7 @@ export function SettingsPanel({
159160 onBlurChange,
160161 motionBlurAmount = 0 ,
161162 onMotionBlurChange,
163+ onMotionBlurCommit,
162164 borderRadius = 0 ,
163165 onBorderRadiusChange,
164166 onBorderRadiusCommit,
@@ -595,7 +597,7 @@ export function SettingsPanel({
595597 < Slider
596598 value = { [ motionBlurAmount ] }
597599 onValueChange = { ( values ) => onMotionBlurChange ?.( values [ 0 ] ) }
598- onValueCommit = { ( values ) => onMotionBlurChange ?.( values [ 0 ] ) }
600+ onValueCommit = { ( ) => onMotionBlurCommit ?.( ) }
599601 min = { 0 }
600602 max = { 1 }
601603 step = { 0.01 }
Original file line number Diff line number Diff line change @@ -1370,7 +1370,8 @@ export default function VideoEditor() {
13701370 showBlur = { showBlur }
13711371 onBlurChange = { ( v ) => pushState ( { showBlur : v } ) }
13721372 motionBlurAmount = { motionBlurAmount }
1373- onMotionBlurChange = { ( v ) => pushState ( { motionBlurAmount : v } ) }
1373+ onMotionBlurChange = { ( v ) => updateState ( { motionBlurAmount : v } ) }
1374+ onMotionBlurCommit = { commitState }
13741375 borderRadius = { borderRadius }
13751376 onBorderRadiusChange = { ( v ) => updateState ( { borderRadius : v } ) }
13761377 onBorderRadiusCommit = { commitState }
You can’t perform that action at this time.
0 commit comments