feat(input): add versioned real pointer frames - #234
Open
7086cmd wants to merge 1 commit into
Open
Conversation
7086cmd
marked this pull request as ready for review
August 7, 2026 05:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reworks real mouse/trackpad input from current
mainsoinput.pointerhas a framework-owned path for absolute hover, focus, press, drag, release, cancellation, andonPress.input.cursorvirtual sprite and reads the live viewport on each pointer eventpocket-mod::Guest::frame_with_inputSemantics
Primary down captures the hovered focusable. Dragging away clears
active:; re-entering restores it; release firesonPressonly over the captured target. Leave clears hover while retaining capture for re-entry, and cancel/blur clears capture without firing. Window drag/resize claims now publish cancellation instead of leaving a false pressed edge.The Note app consumes
pointerEvents()only for caret placement and drag selection. Chrome activation stays entirely inside the framework's focus/onPresspath.Validation
bun run test— 12/12 stages green, including new Solid/Vue Vapor/Octane pointer parity coveragebun run tape:check— 180 golden frames matchbunx tsc --noEmitbun tools/build.ts note-main --density=2cargo test -p pocket-mod -p pocket3d -p pocket-widget --libin the repository Linux container — 32 tests passcargo check -p note-widgetin the repository Linux containerRefs #59. Replaces the input boundaries explored in #229.