OPNsense Forum

English Forums => Development and Code Review => Topic started by: NOYB on January 24, 2018, 07:36:15 am

Title: Viewport User Scaling
Post by: NOYB on January 24, 2018, 07:36:15 am
Tinkering with the viewport settings and find that I like

this
Code: [Select]
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
better than this
Code: [Select]
<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
Title: Re: Viewport User Scaling
Post by: franco on January 24, 2018, 07:57:32 am
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
Title: Re: Viewport User Scaling
Post by: NOYB on January 24, 2018, 08:05:12 am
Okay thanks.  I make a commit.