diff --git a/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx b/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx index 9100d36..5a012f9 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/FrameStampPositionProvider.tsx @@ -134,13 +134,13 @@ export const useLockFrameStampPosition = (shouldLock: boolean, val: number) => { return () => { lockRef.current!.unlock() } - }, [shouldLock]) + }, [shouldLock, getLock]) useLayoutEffect(() => { if (shouldLock) { lockRef.current!.set(val) } - }, [val]) + }, [val, shouldLock]) } /**