Skip to content

Commit f7b593b

Browse files
committed
WPF - Remove workaround for Cursors not loading correctly
Leaving the EmbeddedCursor class incase there's further issues Issue has been fixed upstream https://bitbucket.org/chromiumembedded/cef/issues/3270/osr-pan-icon-missing-when-pressing-the Test url https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values Issue #4021
1 parent 94b524b commit f7b593b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

CefSharp.Wpf/ChromiumWebBrowser.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,16 +1007,7 @@ protected virtual void OnCursorChange(IntPtr handle, CursorType type, CursorInfo
10071007
{
10081008
UiThreadRunAsync(() =>
10091009
{
1010-
//Workaround for upstream issue
1011-
//See #4021
1012-
if (EmbeddedCursor.TryLoadCursor(type, out IntPtr cursorHandle))
1013-
{
1014-
Cursor = CursorInteropHelper.Create(new SafeFileHandle(cursorHandle, ownsHandle: false));
1015-
}
1016-
else
1017-
{
1018-
Cursor = CursorInteropHelper.Create(new SafeFileHandle(handle, ownsHandle: false));
1019-
}
1010+
Cursor = CursorInteropHelper.Create(new SafeFileHandle(handle, ownsHandle: false));
10201011
});
10211012
}
10221013
}

0 commit comments

Comments
 (0)