You can add in your package.json:
"chromium-args": "--disable-pinch"
does not work properly
+1
Is there any workaround to prevent zooming window which contains webview on mouse wheel?
The trick from @gpetrov works for me.
@oallouch, which version of nw.js you use? We are using v0.26.6 and "--disable-pinch" has not effect
I use the latest.
The --disable-pinch solution isn't working...
{
"name": "myapp",
...
"chromium-args": "--disable-pinch",
...
}
~possibly related to #1060~ or maybe not, as --mixed-context works just fine.
| Platform | Version |
|-|-|
| OS | macOS X 10.13.4 |
| nwjs | 0.31.1 |
I would also like to point out that the proper way to control this behaviour should be by including a meta tag in the document, like so:
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Other stuff in HEAD -->
</head>
...
</html>
Most helpful comment
does not work properly