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

Zooming in on mobile causes nav bar to overwhelm viewport #148

Closed
gnestor opened this issue Oct 25, 2016 · 2 comments
Closed

Zooming in on mobile causes nav bar to overwhelm viewport #148

gnestor opened this issue Oct 25, 2016 · 2 comments

Comments

@gnestor
Copy link
Contributor

gnestor commented Oct 25, 2016

Normal zoom:
image

Zoomed in:
image

@cameronoelsen One solution is to disable user scaling: Change this line to <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">. The only issue is that I naturally tried to zoom on my phone because I wanted a closer look at the notebook images, so disabling zooming has its own problems. A hack that I read about is to calculate the amount of scale/zoom in JS and scale the nav bar using transform: scale(1 - viewportScale).

@Carreau
Copy link
Member

Carreau commented Oct 25, 2016

Oh ! Thanks for the precise description.

@cameronoelsen
Copy link
Contributor

This seems to have been fixed since this issue opened so I am closing for now!

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

No branches or pull requests

3 participants