Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix timeline scrub lint formatting
EtienneLescotc4eb3003bec2
diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsxindex cccb1a9d2..759fcbbed 100644--- a/src/components/video-editor/timeline/TimelineEditor.tsx+++ b/src/components/video-editor/timeline/TimelineEditor.tsx@@ -682,22 +682,22 @@ function Timeline({}}, []);- const handleTimelinePointerLeave = useCallback((e: React.PointerEvent<HTMLDivElement>) => {- if (isScrubbingTimelineRef.current && scrubPointerIdRef.current === e.pointerId) {- seekTimelineAtClientX(e.currentTarget, e.clientX);- }- }, [seekTimelineAtClientX]);-- const handleTimelineLostPointerCapture = useCallback(+ const handleTimelinePointerLeave = useCallback((e: React.PointerEvent<HTMLDivElement>) => {- if (scrubPointerIdRef.current === e.pointerId) {- isScrubbingTimelineRef.current = false;- scrubPointerIdRef.current = null;+ if (isScrubbingTimelineRef.current && scrubPointerIdRef.current === e.pointerId) {+ seekTimelineAtClientX(e.currentTarget, e.clientX);}},- [],+ [seekTimelineAtClientX],);+ const handleTimelineLostPointerCapture = useCallback((e: React.PointerEvent<HTMLDivElement>) => {+ if (scrubPointerIdRef.current === e.pointerId) {+ isScrubbingTimelineRef.current = false;+ scrubPointerIdRef.current = null;+ }+ }, []);+const handleTimelineWheel = useCallback((event: React.WheelEvent<HTMLDivElement>) => {if (!onRangeChange || event.ctrlKey || event.metaKey || videoDurationMs <= 0) {