Docs: onTouchCancel is in no document, lastInputTime's "keeps the last one's" does not say per window, and KeyRepeat is in no test group #197
Labels
No labels
claude:blocked
claude:done
claude:failed
claude:in-progress
claude:ready
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/Crafter.Graphics#197
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
Three places where the documents leave out what the code has. None is wrong as written; each sends a reader to the source. Line numbers refer to
c006519.Details
Window::onTouchCancelis in no document. It is declared atinterfaces/Crafter.Graphics-Window.cppm:137and fired byDevice::touch_cancel(implementations/Crafter.Graphics-Device.cpp:802), after the release the cancel synthesises. The list ofWindowevents inAGENTS.consumer.md:131hasonTouchDown,onTouchMoveandonTouchUpand stops there. Since364d210the same bullet speaks of "a touch cancel and its release" without the event's name. A consumer that tracks fingers needs it: after a cancel noonTouchUpcomes for the fingers that were down.lastInputTimeis per window, and the notes do not say so.AGENTS.consumer.md:131and the member's comment (Window.cppm:276-290) say that an event the compositor sends without a time "keeps the last one's" and that the value is "0 before the first event that has one". That is this window's last: with several windows, an enter into window B after input on window A finds B's own older time, or 0. A reader can take "the last one" for the last event on the seat. "this window's last" would settle it.KeyRepeattest is in none of the three groups ofAGENTS.template.md's testing instructions ("What the tests need, in three groups",:73-77). It is declared atproject.cpp:447, drivesTickKeyRepeatswith an injected clock and needs neither a GPU nor a compositor, so it belongs in the first group.git grep -n KeyRepeat -- '*.md'finds nothing.Found in the pre-push review of 364d210..c006519, by the commit-truth lens (1 and 3) and by all three lenses (2). 1 and 3 are older than that range; 2 is wording the range wrote and the review passed, since "keeps" is true of the member.
Suggested fix
One documentation commit:
onTouchCancelin the notes' list ofWindowevents, with what it means for the fingers that were down; "this window's" in the two sentences about an event without a time;KeyRepeatnamed in the first test group.