Commit 66425a2
feat(overlay): explicit point/frame selection modes with a tool selector
Frame drawing becomes a MODE the user picks rather than a threshold the
gesture infers. The pill's annotate row gains a two-button tool segment
(point, frame) with the active one lit, split from the note actions by a
hairline divider.
Strict separation: in frame mode a plain click does nothing, and in point
mode no press can produce a frame -- removing the implicit design's real
hazard, where a jittery click crossed the travel threshold and silently
planted a framed note. The threshold survives with a narrower job: telling
a real drag from a wobble INSIDE frame mode.
MarqueeDrag becomes SelectionGesture: it now owns the press->outcome
decision for both tools, so the old name described half of it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 73d0102 commit 66425a2
9 files changed
Lines changed: 540 additions & 224 deletions
File tree
- Sources/AnnotKit/Overlay
- Tests/AnnotKitTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
20 | 41 | | |
21 | 42 | | |
22 | 43 | | |
| |||
99 | 120 | | |
100 | 121 | | |
101 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
102 | 131 | | |
103 | 132 | | |
104 | 133 | | |
| |||
This file was deleted.
0 commit comments