Refine Pocket tutorial and mobile touch behavior#100
Merged
Conversation
The pointer move/up capture handlers in MobileTerminalUi read `touchMode` but omitted it from their useCallback deps, while their remaining deps (commitGestureState, executeGestureAction, scheduleGestureCompletionClear) stay stable across a mode switch. After switching into Mouse (cursor) mode at runtime the handlers kept the prior mode, so pointermove/pointerup were never synthesized into mouse events: the cursor drag never moved, no mouseup fired, and the pointer capture was never released. The down handler already listed touchMode; add it to move/up to match. Add a regression test that switches Gestures->Mouse after first render and asserts the full mousedown/mousemove/mouseup sequence still dispatches. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Touch mode is a single global UI state, but the override effect only configured the active pane, so switching panes mid-Select left the pane you left stuck in a "permanent" override. Derive each pane's override purely from the global touch mode and that pane's own mouse-reporting state, configuring every session, so override no longer depends on which pane is active. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying mouseterm with
|
| Latest commit: |
dbd81a0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d7771dd5.mouseterm.pages.dev |
| Branch Preview URL: | https://codex-update-pocket-tutorial.mouseterm.pages.dev |
dormouse-bot
approved these changes
May 27, 2026
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
Testing