OPNsense Forum
English Forums => Development and Code Review => Topic started by: NOYB on January 24, 2018, 07:36:15 am
-
Tinkering with the viewport settings and find that I like
this
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
better than this
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
Because it allows zooming in on something and then easily returning to the scale factor 1.
In the past I know Chrome was using or a combination of viewport settings to disable double click zoom. But from what I understand they changed to triggering that by width set to device-width or less.
Preventing user scaling is typical beneficial for things such as maps where it is better for the app to handle the zooming by providing a higher resolution image of that map section. Rather than the browser zooming in on the lower res image and pixelating.
What is the purpose of preventing user scaling here?
Thanks
-
It was added in the initial bootstrap conversion. It may have outlived its purpose or was copied from somewhere else where that was necessary so it went in here by accident. Happy to remove it and try it out on opnsense-devel.
Cheers,
Franco
-
Okay thanks. I make a commit.