Skip to content

fix: touch translator pan/pinch mode-lock, DPI-scaled thresholds, main-menu first-tap#15

Open
mvanhorn wants to merge 1 commit into
ammaarreshi:mainfrom
mvanhorn:fix/11-fix-touch-translator-modelock-dpi-firsttap
Open

fix: touch translator pan/pinch mode-lock, DPI-scaled thresholds, main-menu first-tap#15
mvanhorn wants to merge 1 commit into
ammaarreshi:mainfrom
mvanhorn:fix/11-fix-touch-translator-modelock-dpi-firsttap

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Jul 9, 2026

Copy link
Copy Markdown

Summary

Touch translator pan/pinch mode-lock, DPI-scaled thresholds, main-menu first-tap.

Why this matters

The reporter ported this repo's iOS touch->mouse gesture translator to Android and surfaced three feel-level defects that apply equally to iPhone/iPad. (1) Two-finger pan and pinch run simultaneously from the same PAN phase, so panning fingers emit spurious zoom steps and pinching fingers drift the camera. (2) The tap dead-zone is a fixed 8 px, which is ~0.7 mm on dense panels, so fingertip jitter turns taps into accidental drag-boxes (rally-point misfires). (3) The main menu only reveals after the mouse moves 20 px; on touch there is no idle motion, so the first tap's hover triggers the reveal transition and the deferred click lands mid-transition while buttons are still hidden and is silen

Testing

Changes are scoped to the files named in the fix; added or updated tests where the project has a suite, and matched existing conventions.

Fixes #11

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.

Touch translator improvements from the Android port: pan/pinch mode-lock, DPI-scaled thresholds, main-menu first-tap fix

1 participant