feat(web): drag-select sweep in timeline selection mode #900
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/drag-select-timeline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
In timeline selection mode, dragging a finger (or pressed mouse) across media tiles now sweeps their selection: each newly touched loaded tile is set once to the drag's frozen mode (select or deselect, derived from the start tile's state at pointerdown). Re-crossed tiles never flip twice.
selectionSweep(ids, mode)prop on MediaGrid; only the timeline passes it. All other walls (albums, people, discovery) keep byte-identical selection/scroll behavior.createSweepBatcher) with synchronous flush on pointerup so fast sweeps stay O(frames) state updates.Spec
specs/001-v1-baseline/spec.json: new SC-21i3ux-capability-matrix.md: item 11Test plan
npm run check: 0 errorsnpx playwright test tests/timeline.spec.ts: 74 passed (incl. real CDP touch sweep, re-cross, cancel lifecycle, same-contact long-press exclusion, mouse sweep, scroll regression)npx playwright test tests/discovery-domain-selection.spec.ts: 26 passedtests/instance-remove-mode.spec.ts(non-timeline grid): 18 passed