nw.js
nw.js copied to clipboard
Feature: Prevent zoom on Window
Hello,
please, could you add feature for prevent zoom on nw.Window.get() object? Issue is Ctrl + Wheel from webview.
Thanks
Demo: test.zip
#feature-request
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>
Still doesn't works, meta tag too...
Same thing is happening for me. Mac OS 10.14.6, NWjs v0.65.0. I've tried the meta tag, the chromium arg, and the preventDefault method from this issue.
Happening on Linux too with a touchscreen monitor. Not a great look for a fullscreen kiosk app. I'd rather not resort to something drastic like disabling multitouch on the system entirely.