Skip to content

Fix: Prevent double-tap-to-zoom on mobile tile interactions#15

Merged
rysb-dev merged 2 commits intomainfrom
fix/mobile-double-tap-zoom
Feb 5, 2026
Merged

Fix: Prevent double-tap-to-zoom on mobile tile interactions#15
rysb-dev merged 2 commits intomainfrom
fix/mobile-double-tap-zoom

Conversation

@rysb-dev
Copy link
Copy Markdown
Owner

@rysb-dev rysb-dev commented Feb 5, 2026

Problem

When rapidly clicking tiles on mobile devices, the browser interprets this as a double-tap and triggers the zoom gesture instead of registering two separate tile selections.

Solution

Added touch-action: manipulation to all buttons and interactive elements in app.css. This CSS property:

  • Disables double-tap-to-zoom on buttons
  • Preserves pinch-to-zoom for accessibility
  • Is widely supported on mobile browsers
  • Requires no JavaScript changes

Changes

  • web/src/app.css: Added global rule for button, .btn, and [role="button"] elements

Testing

  • npm run build
  • npm run check ✅ (0 errors, 0 warnings)

Add touch-action: manipulation to all buttons and interactive elements.
This disables the browser's double-tap-to-zoom gesture while preserving
pinch-to-zoom for accessibility.
@rysb-dev rysb-dev merged commit 8b9d118 into main Feb 5, 2026
8 checks passed
@rysb-dev rysb-dev deleted the fix/mobile-double-tap-zoom branch February 5, 2026 22:28
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