From 4037f19550bd9c52c1ee1116cd7394982ffdf3b8 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Fri, 20 Feb 2026 23:52:17 +1300 Subject: [PATCH] fix: make TrimVideo left handle draggable by scoping pointer-events to thumbs The end slider's full-width invisible body (higher z-index) was intercepting all pointer events, preventing the start slider from receiving input. Fix by setting pointer-events: none on both range inputs and pointer-events: all on only the thumb pseudo-elements. Swap z-index so the start handle is on top when both thumbs overlap at position 0. Co-Authored-By: Claude Opus 4.6 --- src/components/nodes/VideoTrimNode.tsx | 27 ++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/components/nodes/VideoTrimNode.tsx b/src/components/nodes/VideoTrimNode.tsx index 6cdc8ecf..b53b6785 100644 --- a/src/components/nodes/VideoTrimNode.tsx +++ b/src/components/nodes/VideoTrimNode.tsx @@ -345,7 +345,22 @@ export function VideoTrimNode({ id, data, selected }: NodeProps {/* Dual range slider */} -
+
+ {/* Make only the slider thumbs interactive, not the full-width invisible input bodies */} + + {/* Track background */}
@@ -355,7 +370,7 @@ export function VideoTrimNode({ id, data, selected }: NodeProps - {/* Start slider */} + {/* Start slider (higher z-index so it's draggable when both thumbs overlap at 0) */} {/* End slider */} @@ -375,8 +390,8 @@ export function VideoTrimNode({ id, data, selected }: NodeProps {/* Visual thumb indicators */}