80076

Chrome ignores “user-scalable=no” meta tag

Question:

Why <strong>desktop-chrome</strong> ignores this:

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">

I can resize chrome content with <strong>windows-touch</strong> and also <strong>ctrl+mouse-wheel</strong>. I want to prevent zooming.

<hr />

<strong>Chrome:</strong> Version 65.0.3325.146 (Official Build) (32-bit)

Answer1:

According to <strong><a href="https://developers.google.com/maps/documentation/javascript/basics" rel="nofollow">the Google Map documentation</a></strong>,

<blockquote>

Android and iOS devices respect the following <meta> tag:

<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

This setting specifies that the map should be displayed full-screen and should not be resizable by the user. Note that the iPhone's Safari browser requires this tag be included within the page's element.

</blockquote>

Desktop computers do not respect the user-scalable attribute, though mobiles will.

If you want to prevent zoom in Chrome on <strong>desktop</strong> computers, your best bet would be to enable kiosk mode with the following startup arguments:

chrome.exe --kiosk --incognito --disable-pinch --overscroll-history-navigation=0

Recommend

  • Incrementing a dynamic variable in PowerShell
  • Regula-Falsi Algorithm?
  • Adjoining “f” and “l” characters
  • mod rewrite clear home url for tomcat + apache
  • Display Windows Touch Keyboard
  • Generate Quartz Cron Expression Every 2nd monday/friday
  • Files in Xcode not working (names in red)
  • NServiceBus How To Publish Message From 2 Physical Locations Of 1 Logical Service
  • problems using replaceText for special characters: [ ]
  • Get fully qualified method name in scala macros
  • How can I progmatically click a link in a Winform Web Browser control?
  • COM Interop hang freezes entire COM system. How to cancel COM call
  • How to customize marker colors and shapes in scatter plot?
  • MySQL database structure for a webshop
  • How do I force ASP.NET Ajax to use a script from the FS and not WebResource.axd, or to reduce its HT
  • How to upload an Image onto localhost server whilst path is stored in mysql database?
  • Parsing a complicated array with GetJSON Jquery
  • Getting specific color for specific value using JSON data
  • Working with codeception and laravel
  • How to use CoreFoundation in QuickTime SDK for Windows?
  • Enable CORS on Tomcat 8.0.30
  • integrity constraint violation: NOT NULL check constraint
  • Align microsoft access queries
  • VB.net Service Programming and using TCP Sockets
  • Find corners of a rotated rectangle
  • Load php page results into div with ajax with link?
  • Scripting Support For Image Filtering in DigitalMicrograph
  • How to output data of primefaces DataGrid component by columns instead of by rows (transpose data)?
  • Pick Out Specific Number from Array? [duplicate]
  • JavaMail connection problems [duplicate]
  • Ajax call on Multiple selection in Select box
  • I am consuming a WCF service that requires headers from a .NET 2 website. How can I programmatically
  • How can I ssh into a server that requires 2 password authentication using python's paramiko mod
  • How to use FirstOrDefault inside Include
  • Firebase: How to read from external DB?
  • Time Complexity of Fibonacci Algorithm [duplicate]