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

Fixed the issue that the input box will be magnified when clicking on it in mobile browser #204

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dearDreamWeb
Copy link

@robinmoisson
Copy link
Owner

Thanks @dearDreamWeb!

I'm on android so I don't see that behavior, which looks a little annoying. I don't want to prevent the user from pinch-zooming if we can help it though, and I think your current solution would prevent it.

It looks like (in the SO question as well) that setting the font-size to 16px in the input prevents this behavior. It's currently at 14px and I think it's an acceptable compromise, even if a little arbitrary from Safari.

It would preserve the ability for the user to zoom. I don't have Safari, could you try and check if that works?

@dearDreamWeb
Copy link
Author

I tried it, it's ok

@dearDreamWeb
Copy link
Author

I forgot to delete the configuration added by viewport, I need to try again

@dearDreamWeb
Copy link
Author

It's ok

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