Options specific to the WkWebView backend used on Linux systems.
These options will be ignored on other platforms.
Public Member Functions | |
| LinuxWkWebView | withNativeZoomGesture (bool x) const |
| Specifies whether the pinch-to-zoom and CTRL + wheel gestures are handled natively by the WebView. | |
| LinuxWkWebView | withPinchTranslationSensitivity (float x) const |
| A multiplier applied to deltaY parameter of the wheel event on Linux when the default GTK to Javascript translation is enabled. | |
| auto | getAllowNativeZoomGesture () const |
| auto | getPinchTranslationSensitivity () const |
|
inlinenodiscard |
Specifies whether the pinch-to-zoom and CTRL + wheel gestures are handled natively by the WebView.
This is disabled by default, and instead both events are propagated to the page hosted by the WebView, where it can be handled as CTRL + wheel up/down events.
If you enable this option the page no longer receives these events and the zoom operation is instead carried out by the WebView unconditionally. This behaviour is unlike any other OS implementation, hence the disabled default.
References juce::withMember(), and x.
|
inlinenodiscard |
A multiplier applied to deltaY parameter of the wheel event on Linux when the default GTK to Javascript translation is enabled.
The default value is 100.0f.
To disable this translation, call withNativeZoomGesture (true). After this no wheel events will be received during touchpad pinch gestures.
References juce::withMember(), and x.
|
inline |
|
inline |