Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automatic zoom on mobile devices #1169

Merged
merged 1 commit into from
Sep 13, 2022
Merged

Fix automatic zoom on mobile devices #1169

merged 1 commit into from
Sep 13, 2022

Conversation

linusfj
Copy link
Member

@linusfj linusfj commented Sep 12, 2022

If you use the Safari browser on mobile devices, it automatically zooms in whenever you click on a text field.

To prevent the browser from doing that we can add maximum-scale=1, which controls how much zoom in is allowed on the page.

Add maximum-scale=1 to prevent the browser from automatically zooming in when clicking on text fields.
Copy link
Member

@Hallbergs Hallbergs left a comment

Choose a reason for hiding this comment

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

Should work! I haven't tested it on an actual mobile device though.

I've seen the issue with mobile zoom on text-inputs with small text-size, we solved it by increasing the text size to the recommended size. This is still a good addition i think (the app should never be used zoomed).

@Hallbergs Hallbergs added the bug label Sep 13, 2022
@linusfj linusfj merged commit 3964558 into develop Sep 13, 2022
@linusfj linusfj deleted the fix/textfield-zoom branch September 13, 2022 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants