microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.27k stars 674 forks source link

Many css built-in cursor type are not supported with WebView2 in WinUI3 #9188

Open HO-COOH opened 8 months ago

HO-COOH commented 8 months ago

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 image

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

github-actions[bot] commented 8 months ago

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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

HarlanHugh commented 6 months ago

This is also a problem for BlazorWebView. This is a significant issue for our app.

HarlanHugh commented 3 weeks ago

It's been 6 months. Can we get some attention on this please?

codendone commented 3 weeks ago

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.