Drag a box from empty timeline space to select clips

Pressing on empty track space and dragging draws a box; every clip and
bar it touches, across lanes and rows, is outlined while it is drawn and
selected when it is let go, with shift or cmd adding to what was
selected. A press that does not move is still a click, and a
double-click in a lane still makes a drawing. On a phone one finger
draws the box and two scroll the rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FLuCjp9kNH6ovwJVXSbq9
This commit is contained in:
Olive Vaughn 2026-10-11 00:39:24 -04:00
parent 249ecfc054
commit bbe20b3abf
2 changed files with 107 additions and 7 deletions

View file

@ -1115,6 +1115,9 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
first one, full height — which reads as "the timeline draws nothing" rather
than as a positioning bug. */
.tl-track { position: relative; }
/* One finger on the rows is a pointer — a clip, a box, a key — and never a
scroll; two fingers scroll, which `ui/timeline` does itself. */
.tl-tracks { touch-action: none; }
.tl-label {
/* Scrolled to from the stage: clear of the sticky ruler above. */
@ -1289,6 +1292,8 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
.tl-cel.on:hover:not(:disabled) { background: var(--pick); filter: brightness(1.12); }
.tl-span.on { background: var(--pick-bg); border-color: var(--pick); }
.tl-cel.target, .tl-span.target { outline: 2px solid var(--target); outline-offset: -2px; }
/* Inside a box being dragged over the rows: selected when it is let go. */
.tl-cel.swept, .tl-span.swept { outline: 2px solid var(--pick); outline-offset: -2px; }
.tl-span.on.dense {
background: repeating-linear-gradient(
-45deg, var(--pick-bg) 0 3px, #f0bf77 3px 6px);