Nw.js: Feature: Prevent zoom on Window

Created on 8 Nov 2017  路  7Comments  路  Source: nwjs/nw.js

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

P2 feature-request

Most helpful comment

does not work properly

All 7 comments

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>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jportoles picture jportoles  路  3Comments

imyzf picture imyzf  路  4Comments

xland picture xland  路  3Comments

adam-lynch picture adam-lynch  路  4Comments

nawazishali picture nawazishali  路  3Comments