ICoreWebView2Settings6.get_IsSwipeNavigationEnabled

The IsSwipeNavigationEnabled property enables or disables the ability of the end user to use swiping gesture on touch input enabled devices to navigate in WebView2. It defaults to TRUE.

When this property is TRUE, then all configured navigation gestures are enabled: 1. Swiping left and right to navigate forward and backward is always configured. 2. Swiping down to refresh is off by default and not exposed via our API currently, it requires the "--pull-to-refresh" option to be included in the additional browser arguments to be configured. (See put_AdditionalBrowserArguments.)

When set to FALSE, the end user cannot swipe to navigate or pull to refresh. This API only affects the overscrolling navigation functionality and has no effect on the scrolling interaction used to explore the web content shown in WebView2.

Disabling/Enabling IsSwipeNavigationEnabled takes effect after the next navigation.

\snippet SettingsComponent.cpp ToggleSwipeNavigationEnabled

interface ICoreWebView2Settings6
@" propget"
HRESULT
get_IsSwipeNavigationEnabled
(
BOOL* enabled
)

Meta