Files
pdfcraft/crates
alehelandClaude Opus 5.5 1780f33350 refactor(ui): tell each page whether the press is its own
Each module asked the router `owner(page).is_none()` to learn whether a press was the active
tool's. That reads a press held on another page, or begun between the pages, as the tool's
too.

The router now remembers the page a press began on (`begin` on every new press, then `press`
on the page it lands on), and `press_for(page)` answers what a page has to do with it:
- `Mine(owner)`: the press began on this page and the owner's hit won it;
- `Free`: no button is down, or the press began on this page and no hit won it, so it is the
  active tool's;
- `Elsewhere`: the press began on another page, or between the pages.

The page view asks once per page, and the stamps and the Link tool use the answer. The other
modules move to it in the next commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 20:38:43 +01:00
..
…