Skip to content

The open-source CapCut alternative

fix comment for use-timeline-playhead hook

gantiro7cc3a907dee4
diff --git a/apps/web/src/hooks/use-timeline-playhead.ts b/apps/web/src/hooks/use-timeline-playhead.ts
index de3f8ccf..1899d182 100644
--- a/apps/web/src/hooks/use-timeline-playhead.ts
+++ b/apps/web/src/hooks/use-timeline-playhead.ts
@@ -86,6 +86,7 @@ export function useTimelinePlayhead({
*/
const handleRulerMouseDown = useCallback(
(e: React.MouseEvent) => {
+ if (e.button !== 0) return;
e.preventDefault();
const time = getTimeFromMouse(e);
if (time === undefined) return;