Skip to content

🎥 Make videos programmatically with React

Expand outer edge handles and avoid overlap on narrow layers

Jonny Burgerf49e8e589c5c
diff --git a/packages/studio/src/components/Timeline/TimelineSequenceRightEdgeDragHandle.tsx b/packages/studio/src/components/Timeline/TimelineSequenceRightEdgeDragHandle.tsx
index 561e780aa8..f7d6236005 100644
--- a/packages/studio/src/components/Timeline/TimelineSequenceRightEdgeDragHandle.tsx
+++ b/packages/studio/src/components/Timeline/TimelineSequenceRightEdgeDragHandle.tsx
@@ -47,14 +47,15 @@ import {
} from './TimelineSelection';
const HANDLE_INSET = 6;
-const HANDLE_OUTSET = 4;
+const HANDLE_OUTSET = 8;
export const timelineSequenceFromDragSnapThresholdPx = 10;
const baseStyle: React.CSSProperties = {
position: 'absolute',
top: 0,
bottom: 0,
- width: HANDLE_INSET + HANDLE_OUTSET,
+ // Keep the middle half of narrow layers available for moving.
+ width: `calc(${HANDLE_OUTSET}px + min(${HANDLE_INSET}px, 25%))`,
cursor: 'ew-resize',
zIndex: 1,
touchAction: 'none',