Skip to content

fix(pwa): disable pinch zoom on mobile#131

Merged
hyldmo merged 1 commit into
mainfrom
claude/disable-mobile-zoom-tQ5Qz
May 14, 2026
Merged

fix(pwa): disable pinch zoom on mobile#131
hyldmo merged 1 commit into
mainfrom
claude/disable-mobile-zoom-tQ5Qz

Conversation

@hyldmo
Copy link
Copy Markdown
Owner

@hyldmo hyldmo commented May 14, 2026

Summary

  • Set maximum-scale=1.0, user-scalable=no on the base viewport meta tag in src/root.tsx so pinch zoom is disabled across all mobile browser sessions, not just installed PWA sessions.
  • The existing public/standalone-viewport.js only mutated the viewport in standalone display mode, leaving regular mobile browser users able to pinch zoom.

Test plan

  • Open the site on a phone (or DevTools device emulation) and confirm pinch zoom is disabled.
  • Install as PWA and confirm zoom is still disabled in standalone mode (no regression).
  • Desktop browsers unaffected.

Generated by Claude Code

The viewport meta tag previously allowed zoom by default; the existing
standalone-viewport.js only locked zoom for installed PWA sessions.
Setting maximum-scale=1.0, user-scalable=no in the base meta tag
applies the lock across all mobile browsers.

Learnings considered.
@github-actions
Copy link
Copy Markdown

Preview deployment

URL https://claude-disable-mobile-zoom-t.macromaxxing.pages.dev
Branch claude/disable-mobile-zoom-tQ5Qz
Commit fe37457

@hyldmo hyldmo merged commit c68eedf into main May 14, 2026
3 checks passed
@hyldmo hyldmo deleted the claude/disable-mobile-zoom-tQ5Qz branch May 14, 2026 12:27
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.

2 participants