MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Content moves during horizontal touch with IsSwipeNavigationEnabled set to false
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
From @KumG:
I tried to set IsSwipeNavigationEnabled to false, but with a touch screen, I still have the animations when I swipe left/right or pull.
I have a Web application displayed on a kiosk. I don't want it to look like a web page.
Is it possible to completely disable the touch animations ?
From @Comawhite54:
I confirm the same "wrong" behavior on my side (the navigation is disabled OK, but I still see the "drag" animation).
My application is running on a standard computer, windows 10, desktop mode + touchscreen monitor.
Find below my initialization (I use the latest nuget & runtime):
private async void InitializeBrowser(string mydatapath, string url = null)
{
var env = await CoreWebView2Environment.CreateAsync(null, mydatapath);
await webView21.EnsureCoreWebView2Async(env);
webView21.Source = new UriBuilder(url).Uri;
webView21.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false;
webView21.CoreWebView2.Settings.IsZoomControlEnabled = false;
webView21.CoreWebView2.Settings.IsPinchZoomEnabled = false;
webView21.CoreWebView2.Settings.IsSwipeNavigationEnabled = false;
}
I attach an image where I try to picture the problem, just to be sure the matter is clear.

Originally posted by @Comawhite54 in https://github.com/MicrosoftEdge/WebView2Feedback/issues/606#issuecomment-892597908
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WebView2 initialization shown in the issue, especially the IsSwipeNavigationEnabled setting, and reproduce the behavior on a touchscreen. Investigate whether the drag animation can be disabled separately from swipe navigation. Done means touch swipes neither navigate nor display the reported animation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100