Skip to content

Inert phone taps on the glasses, a cancel is not a tap, save the next level - #44

Merged
jpcottin merged 1 commit into
mainfrom
fix/handed-off-taps-cancel-and-save-level
Oct 24, 2026
Merged

jpcottin merged 1 commit into
mainfrom
fix/handed-off-taps-cancel-and-save-level

Conversation

@jpcottin

Copy link
Copy Markdown
Owner

While a game runs on the glasses the phone shows a hand-off banner over
its title or end screen, but a tap on that banner still started a game
(hidden, frozen, waiting for the hand-back) or dismissed the end screen.
Those taps are now ignored while handed off; Settings stays reachable
through the gear and its rows keep working, including the one that
hands the game back.

A gesture the system takes away (an edge swipe for back or recents)
arrives as a pointer down followed by a cancel; the cancel cleared the
fingers but left the pending tap, so the next frame started a game or
dismissed a screen. The cancel now drops the tap too.

A saved session taken during the level-clear interlude named the level
just cleared, whose bonus was already banked, so restoring replayed the
wave and paid the bonus twice. saveLevel() names the next level in that
state and the activity saves that.

Four new tests (each fails without its fix): a cancelled gesture is not
a tap, the phone title tap and end screen are inert while on the glasses,
a level clear saves the next level. README 142 -> 146 tests.

… level

While a game runs on the glasses the phone shows a hand-off banner over
its title or end screen, but a tap on that banner still started a game
(hidden, frozen, waiting for the hand-back) or dismissed the end screen.
Those taps are now ignored while handed off; Settings stays reachable
through the gear and its rows keep working, including the one that
hands the game back.

A gesture the system takes away (an edge swipe for back or recents)
arrives as a pointer down followed by a cancel; the cancel cleared the
fingers but left the pending tap, so the next frame started a game or
dismissed a screen. The cancel now drops the tap too.

A saved session taken during the level-clear interlude named the level
just cleared, whose bonus was already banked, so restoring replayed the
wave and paid the bonus twice. saveLevel() names the next level in that
state and the activity saves that.

Four new tests (each fails without its fix): a cancelled gesture is not
a tap, the phone title tap and end screen are inert while on the glasses,
a level clear saves the next level. README 142 -> 146 tests.
@jpcottin
jpcottin merged commit bcf7fee into main Oct 24, 2026
21 checks passed
@jpcottin
jpcottin deleted the fix/handed-off-taps-cancel-and-save-level branch October 24, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant