Gesture: taps, long presses, drags and flings from pointer phases
What a finger or a mouse did, decided from raw Down/Move/Up/Cancel phases over the app's own point type: a short press within the slop is a tap at the press position, a press held past the long-press time (the host's timer) a long press, movement past the slop a drag with its deltas, a fast release a fling with a velocity (the last 100 ms of movement before it: a finger held still before letting go flings nothing). With it the scroll physics of a list (clamped offset, a decaying fling that stops at the edges) and the topmost hit region under a point. Tested: tests/Gesture.
This commit is contained in:
parent
985519b970
commit
f360a746c2
5 changed files with 348 additions and 9 deletions
|
|
@ -27,7 +27,7 @@ and §7.9 (Messaging) and §8.1 (the frozen one).
|
|||
| Path | What it is |
|
||||
|---|---|
|
||||
| `project.cpp` | The build description for Crafter.Build: three products (below) and the tests. |
|
||||
| `interfaces/ImsdMessages*.cppm` | `imsd-messages-core`: std + Crafter.DB, no GLib, no window — numbers, time, the model, word wrap, the store, the sync logic. |
|
||||
| `interfaces/ImsdMessages*.cppm` | `imsd-messages-core`: std + Crafter.DB, no GLib, no window — numbers, time, the model, word wrap, gestures, the store, the sync logic. |
|
||||
| `interfaces/ImsdMessages.Bus*.cppm` | `imsd-messages-bus`: GLib/GDBus — imsd's dictionaries, the client, notifications, the app's own bus name. |
|
||||
| `implementations/main.cpp` | The executable `imsd-messages`. |
|
||||
| `tests/<Name>/main.cpp` | One test per directory, declared in `project.cpp`. |
|
||||
|
|
|
|||
Loading…
Reference in a new issue