diff options
| author | gantiro <gantiro396@gmail.com> | 2025-07-15 23:29:30 +0700 |
|---|---|---|
| committer | gantiro <gantiro396@gmail.com> | 2025-07-15 23:29:30 +0700 |
| commit | 7cc3a907dee4341c460eede0ac69822a0cdf2c92 (patch) | |
| tree | fcc3a2b93462710067bff3a5ad9b5ca28e94ddb9 /apps/web/src/hooks | |
| parent | 8bfc91e62ed74d843428cd8a386778e6e7a13db4 (diff) | |
| download | opencut-7cc3a907dee4341c460eede0ac69822a0cdf2c92.tar.gz | |
fix comment for use-timeline-playhead hook
Diffstat (limited to 'apps/web/src/hooks')
| -rw-r--r-- | apps/web/src/hooks/use-timeline-playhead.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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;
|
