For a HTML game I want to disable the normal zooming functionality in Chrome.
This question talks about how to use the viewport
meta tag to disable zoom in Chrome on Android but this does not seem to work in normal desktop chrome.
For a HTML game I want to disable the normal zooming functionality in Chrome.
This question talks about how to use the viewport
meta tag to disable zoom in Chrome on Android but this does not seem to work in normal desktop chrome.
While this doesn't answer my original question (I asked about a page displayed in Chrome) I just wanted to document that Chromium (the OSS behind Chrome) seems to have a flag which controls whether it will support the viewport meta tag:
// Enables the use of the viewport meta tag, which allows
// pages to control aspects of their own layout. This also turns on touch-screen
// pinch gestures.
const char kEnableViewport[] = "enable-viewport";
(soure: http://src.chromium.org/svn/trunk/src/content/public/common/content_switches.cc)
So, if packaging the game into its own chromium instance is an option (which in my case is likely), zooming could be disabled via the viewport meta tag.