fix(ui): don't seek when editing time events (#26)

The propagation of click events will now be stopped if something is being dragged.
This prevents the timeline from seeking when editing a time event.
This commit is contained in:
Jacob
2022-08-06 23:20:02 +02:00
committed by GitHub
parent 78698e40a4
commit 524c200ef1

View File

@@ -32,6 +32,15 @@ export function useDrag(
true,
);
useDocumentEvent(
'click',
useCallback(event => {
event.stopPropagation();
}, []),
isDragging,
true,
);
useDocumentEvent(
'mousemove',
useCallback(