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

Open
opened 2026-11-17 06:45:47 +00:00 by jorijnvdgraaf · 0 comments

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

  1. Window::onTouchCancel is in no document. It is declared at interfaces/Crafter.Graphics-Window.cppm:137 and fired by Device::touch_cancel (implementations/Crafter.Graphics-Device.cpp:802), after the release the cancel synthesises. The list of Window events in AGENTS.consumer.md:131 has onTouchDown, onTouchMove and onTouchUp and stops there. Since 364d210 the 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 no onTouchUp comes for the fingers that were down.
  2. lastInputTime is per window, and the notes do not say so. AGENTS.consumer.md:131 and 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.
  3. The KeyRepeat test is in none of the three groups of AGENTS.template.md's testing instructions ("What the tests need, in three groups", :73-77). It is declared at project.cpp:447, drives TickKeyRepeats with 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: onTouchCancel in the notes' list of Window events, with what it means for the fingers that were down; "this window's" in the two sentences about an event without a time; KeyRepeat named in the first test group.

## 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 1. `Window::onTouchCancel` is in no document. It is declared at `interfaces/Crafter.Graphics-Window.cppm:137` and fired by `Device::touch_cancel` (`implementations/Crafter.Graphics-Device.cpp:802`), after the release the cancel synthesises. The list of `Window` events in `AGENTS.consumer.md:131` has `onTouchDown`, `onTouchMove` and `onTouchUp` and stops there. Since 364d210 the 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 no `onTouchUp` comes for the fingers that were down. 2. `lastInputTime` is per window, and the notes do not say so. `AGENTS.consumer.md:131` and 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. 3. The `KeyRepeat` test is in none of the three groups of `AGENTS.template.md`'s testing instructions ("What the tests need, in three groups", `:73-77`). It is declared at `project.cpp:447`, drives `TickKeyRepeats` with 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: `onTouchCancel` in the notes' list of `Window` events, with what it means for the fingers that were down; "this window's" in the two sentences about an event without a time; `KeyRepeat` named in the first test group.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/Crafter.Graphics#197
No description provided.