Skip to content

fix: disable mobile zoom on web page#113

Merged
sempruijs merged 1 commit into
biblecomputer:mainfrom
onesimus-coder:fix/disable-mobile-zoom
Apr 27, 2026
Merged

fix: disable mobile zoom on web page#113
sempruijs merged 1 commit into
biblecomputer:mainfrom
onesimus-coder:fix/disable-mobile-zoom

Conversation

@onesimus-coder

Copy link
Copy Markdown

Summary

This PR fixes #105 by adding maximum-scale=1.0 and user-scalable=no to the viewport <meta> tag in site/src/app.html.

Changes

  • site/src/app.html: Updated the viewport meta tag to include maximum-scale=1.0, user-scalable=no

How it works

The user-scalable=no attribute prevents users from zooming in via double-tap or pinch gestures on mobile devices (e.g. iPhone). The maximum-scale=1.0 reinforces this by capping the zoom level at 1x.

Testing

Open the web app on an iPhone or Android device and verify that:

  • Double-tapping no longer zooms in
  • Pinching with two fingers no longer zooms in

Fixes #105

Add `maximum-scale=1.0` and `user-scalable=no` to the viewport meta
tag to prevent users from zooming in via double-tap or pinch gestures
on mobile devices (e.g. iPhone).

Fixes biblecomputer#105

@sempruijs sempruijs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@sempruijs sempruijs merged commit bc6f77d into biblecomputer:main Apr 27, 2026
1 check 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.

Turn off web page zoom

3 participants