mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix comment for use-timeline-playhead hook
This commit is contained in:
@@ -86,6 +86,7 @@ export function useTimelinePlayhead({
|
|||||||
*/
|
*/
|
||||||
const handleRulerMouseDown = useCallback(
|
const handleRulerMouseDown = useCallback(
|
||||||
(e: React.MouseEvent) => {
|
(e: React.MouseEvent) => {
|
||||||
|
if (e.button !== 0) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const time = getTimeFromMouse(e);
|
const time = getTimeFromMouse(e);
|
||||||
if (time === undefined) return;
|
if (time === undefined) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user