microsoft-ui-xaml
microsoft-ui-xaml copied to clipboard
Many css built-in cursor type are not supported with WebView2 in WinUI3
Describe the bug
Use a webview2 and go to https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
, and you can see how many of the built-in CSS cursors are not shown correctly with WebView2, but they do with Edge. Related to #8196, but these are not mentioned in that issue.
Some of them include:
zoom-in
zoom-out
grab
col-resize
row-resize
Steps to reproduce the bug
Hover to rows of this area
Expected behavior
Should behave the same as Edge
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5 Experimental 1: 1.5.231202003-experimental1
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Closed similar issues:
- Cursor is not changed in webview2 (#8196), similarity score: 0.84
- Click WebView2 on UWP may hide cursor (#6168), similarity score: 0.78
- Possible bug on webview2. (#5410), similarity score: 0.76
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
This is also a problem for BlazorWebView. This is a significant issue for our app.
It's been 6 months. Can we get some attention on this please?
Documentation for CSS cursor limitations for WebView2 in WinUI2 also apply to WinUI3. The problem is that there is currently isn't a way for these custom cursors to be communicated from the CoreWebView2 process to the WinUI host. ("custom cursors" here means a cursor not in the CoreCursorType enum.)
This is something we'd like to fix at some point, but we don't have a timeline for that.