Gesture, Ui, project: Crafter.Graphics at 364d210, whose pointer and touch events carry their time
The pinned library dropped the compositor's time of every pointer and touch event, so the app dated them by its own clock at dispatch. Events queued while the main loop was busy — a List importing a backlog, each Import an fdatasync — all carried the time the loop came back: a swipe's backlog read as a few milliseconds' travel and flung the list to its far end, and a press whose down and up both waited out a stall had them at one time, a tap where the user held — on a Failed bubble a Retry, an SMS the user did not ask for. Crafter.Graphics 364d210 keeps the time on the window (lastInputTime, set before the event fires), one commit on the master of 2026-11-02, which added the library's review configuration and no code. The gesture detector now gets each event's own time, unwrapped past the wrap at 2^32 into one running clock (an event stamped 0, which the compositor's time reads for one millisecond in 2^32, gets the host's clock), and the long-press timer's expiry is the host's elapsed since the press put on that clock, so a press and its release keep their distance however late the loop dispatches them — and a release or a move the detector sees past the long-press time with no timer fired is the long press itself, at the press, where the press can be one, since the hold is measured on the events' clock (tests/Gesture pins both). The pin moves from 3f646ec; the contracts this app relies on are unchanged by the two commits between.
This commit is contained in:
parent
a679ac7e6e
commit
e6b343985d
4 changed files with 55 additions and 6 deletions
|
|
@ -85,7 +85,7 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
|
|||
// The window library.
|
||||
Configuration* graphics = local
|
||||
? LocalProject({ .projectFile = "../Crafter/Crafter.Graphics/project.cpp", .args = depArgs })
|
||||
: GitProject({ .source = { .url = "https://forgejo.catcrafts.net/Catcrafts/Crafter.Graphics.git", .commit = "3f646ec42bee39056549098b77aceed7a00a26a4" }, .args = depArgs });
|
||||
: GitProject({ .source = { .url = "https://forgejo.catcrafts.net/Catcrafts/Crafter.Graphics.git", .commit = "364d2101c973905e4ace263ac2b2085e75de725e" }, .args = depArgs });
|
||||
|
||||
// imsd-messages-core — numbers, time, the model, word wrap, gestures,
|
||||
// the message field's editing, the store and the sync logic: std +
|
||||
|
|
|
|||
Loading…
Reference in a new issue