WebReflection / jsgtk

A simplified approach to GJS for Node.JS and JavaScript developers.
https://webreflection.github.io/jsgtk/
Other
85 stars 9 forks source link

Cannot disable user gestures on webview #18

Closed pcaffardi closed 6 years ago

pcaffardi commented 6 years ago

Is there any way to disable zoom gestures into your webview example?

WebReflection commented 6 years ago

have you tried with HTML?

<meta
  name="viewport"
  content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"
>
pcaffardi commented 6 years ago

Yes, i already tried but nothing, this does not work too! :-(

Il giorno lun 1 ott 2018 alle ore 17:26 Andrea Giammarchi < notifications@github.com> ha scritto:

have you tried with HTML?

<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=nop">

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WebReflection/jsgtk/issues/18#issuecomment-425949873, or mute the thread https://github.com/notifications/unsubscribe-auth/AMkXdjy7-hgdVDNoHtr1PYLJ5CLmw4ehks5ugjQ0gaJpZM4XCQSP .

WebReflection commented 6 years ago

Just to clarify, this is not a bug, which is why I've closed the issue. It's eventually in WebKitGTK that you should try to find out if there is a way to force a scale.

There is a method, but I haven't tried myself: https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-set-zoom-level