doc: Why useLockFrameStampPosition in useDragForSingleKeyframeDot
Co-authored-by: Andrew Prifer <2991360+AndrewPrifer@users.noreply.github.com>
This commit is contained in:
parent
07febee992
commit
782e0f621e
1 changed files with 3 additions and 0 deletions
|
@ -245,6 +245,9 @@ function useDragForSingleKeyframeDot(
|
||||||
|
|
||||||
const [isDragging] = useDrag(node, useDragOpts)
|
const [isDragging] = useDrag(node, useDragOpts)
|
||||||
|
|
||||||
|
// Lock frame stamp to the current position of the dragged keyframe instead of
|
||||||
|
// the mouse position, so that it appears centered above the keyframe even
|
||||||
|
// regardless of where in the hit zone of the keyframe the mouse is located.
|
||||||
useLockFrameStampPosition(isDragging, props.keyframe.position)
|
useLockFrameStampPosition(isDragging, props.keyframe.position)
|
||||||
useCssCursorLock(isDragging, 'draggingPositionInSequenceEditor', 'ew-resize')
|
useCssCursorLock(isDragging, 'draggingPositionInSequenceEditor', 'ew-resize')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue