diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx index 6c4063f..5a2b05b 100644 --- a/apps/web/src/components/editor/timeline.tsx +++ b/apps/web/src/components/editor/timeline.tsx @@ -482,7 +482,8 @@ export function Timeline() { // Prevent explorer zooming in/out when in timeline useEffect(() => { const preventZoom = (e: WheelEvent) => { - if (isInTimeline && (e.ctrlKey || e.metaKey)) { + // if (isInTimeline && (e.ctrlKey || e.metaKey)) { + if (isInTimeline && (e.ctrlKey || e.metaKey) && timelineRef.current?.contains(e.target as Node)) { e.preventDefault(); } }; @@ -825,7 +826,6 @@ export function Timeline() { }} onClick={handleTimelineAreaClick} onMouseDown={handleTimelineMouseDown} - onWheel={handleWheel} > {tracks.length === 0 ? (