OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Viewport User Scaling
« previous next »
  • Print
Pages: [1]

Author Topic: Viewport User Scaling  (Read 3070 times)

NOYB

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
Viewport User Scaling
« 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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17700
  • Karma: 1615
    • View Profile
Re: Viewport User Scaling
« Reply #1 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
Logged

NOYB

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
Re: Viewport User Scaling
« Reply #2 on: January 24, 2018, 08:05:12 am »
Okay thanks.  I make a commit.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Viewport User Scaling
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2