Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor is not changed in webview2 #8196

Closed
khoabui1412 opened this issue Feb 16, 2023 · 4 comments
Closed

Cursor is not changed in webview2 #8196

khoabui1412 opened this issue Feb 16, 2023 · 4 comments
Assignees
Labels
area-WebView bug Something isn't working closed-Fixed Described behavior has been fixed. team-Rendering Issue for the Rendering team
Milestone

Comments

@khoabui1412
Copy link

Describe the bug

Hi,
I have a custom web html:

<!DOCTYPE html>
<html>
<head>
	<title>Change cursor on hover</title>
	<style>
		.square {
			width: 100px;
			height: 100px;
			background-color: blue;
		}
		.square:hover {
			cursor: crosshair;
		}
	</style>
</head>
<body>
	<div class="square"></div>
</body>
</html>

But when open it by webview2 in winUI3, the cursor is not changed to crosshair as expected.

Steps to reproduce the bug

Open browser has custom cursor by webview2

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.2.3: 1.2.230118.102

Packaging type

Unpackaged

Windows version

Windows 11 version 22H2 (22621, 2022 Update), Windows 11 version 21H2 (22000)

IDE

Visual Studio 2022

Additional context

No response

@gabbybilka gabbybilka transferred this issue from microsoft/WindowsAppSDK Feb 16, 2023
@gabbybilka gabbybilka added area-WebView team-Rendering Issue for the Rendering team bug Something isn't working labels Feb 16, 2023
@DmitriyKomin
Copy link
Contributor

Thanks for reporting this @khoabui1412, indeed the HTML cursor types crosshair, help, move and not_allowed were not getting mapped correctly. This is now fixed internally (tracked by ADO Bug 45873654), expected to be included in WinAppSDK 1.5.

@khoabui1412
Copy link
Author

@DmitriyKomin, does that fix include custom (external) image for cursor?

@DmitriyKomin
Copy link
Contributor

No, it does not. That is a separate issue, tracked by MicrosoftEdge/WebView2Feedback#1925. @champnic on Edge team may have more info.

@llongley llongley closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2023
@llongley llongley added the closed-Duplicate Described behavior is already captured by another issue. label Sep 23, 2023
@bpulliam bpulliam added closed-Fixed Described behavior has been fixed. and removed closed-Duplicate Described behavior is already captured by another issue. labels Feb 6, 2024
@bpulliam bpulliam added this to the WinAppSDK 1.5 milestone Feb 6, 2024
@bpulliam
Copy link
Contributor

bpulliam commented Feb 6, 2024

Removing the duplicate tag, marking as Fixed, and adding to 1.5 Milestone since the original issue of HTML cursor types is fixed in 1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WebView bug Something isn't working closed-Fixed Described behavior has been fixed. team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

5 participants