Skip to content

Classify single-finger touches in TUI apps to stop phantom clicks - #130

Merged
zackslash merged 1 commit into
mainfrom
fix/tui-scroll-tap-disambiguation
Sep 8, 2026
Merged

Classify single-finger touches in TUI apps to stop phantom clicks#130
zackslash merged 1 commit into
mainfrom
fix/tui-scroll-tap-disambiguation

Conversation

@zackslash

Copy link
Copy Markdown
Owner

A one-finger scroll in mouse-tracking apps sent a full synthetic click (press, motion, release) along with the wheel events, so apps reacted to clicks the user never made; opencode opened its Message Actions dialog mid-scroll and copied text via OSC 52. Single-finger touches are now classified first: a short lift sends one click pair, movement past the tap threshold scrolls with wheel events only, and holding 300 ms before dragging engages app-side selection, matching the press-and-hold rule of normal mode. Two-finger scroll, pinch zoom, pull-down menu, external mice, and normal selection are unchanged.

@zackslash
zackslash merged commit 391f9e1 into main Sep 8, 2026
3 of 5 checks passed
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