Currently I am working on a Packaged Chrome app which incorporates a Google Map. I am however unable to zoom using pinch. Also 'normal' zoom on a webpage doesn't work.
All pages (and maps) I use are zoomable with pinches if I open them in Google Chrome directly, but I don't seem to get it working in a packages app. Any ideas? Might this be a permissions or WindowOptions problem?
Working on Mac 10.11.3. Chrome version 48.0.2564.116
Simple example (dropbox link): zoomtest
manifest.json
{
"name": "Zoom test",
"version": "0.1",
"manifest_version": 2,
"app": {
"background": {
"scripts": ["background.js"]
}
}
}
background.js
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
innerBounds: { width: 800, height: 600 },
state: 'normal'
});
});
index.html
<html>
<head>
<style>
p {
width: 400px;
}
</style>
</head>
<body>
<p>This page is zoomable in Google Chrome if opened directly,
but not if run as an app.</p>
</body>
</html>