CoreWebView2Settings.IsSwipeNavigationEnabled Property

Definition

Determines whether the end user to use swiping gesture on touch input enabled devices to navigate in WebView2.

public bool IsSwipeNavigationEnabled { get; set; }
member this.IsSwipeNavigationEnabled : bool with get, set
Public Property IsSwipeNavigationEnabled As Boolean

Property Value

Examples

WebViewSettings.IsSwipeNavigationEnabled = !WebViewSettings.IsSwipeNavigationEnabled;

Remarks

Swiping gesture navigation on touch screen includes:

  • Swipe left/right (swipe horizontally) to navigate to previous/next page in navigation history.
  • Pull to refresh (swipe vertically) the current page. (This feature is currently disabled by default in the browser, to enable in WebView2, set AdditionalBrowserArguments property with --pull-to-refresh switch).
It defaults to true. 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.

Applies to