Skip to content

Commit

Permalink
WPF - Remove workaround for Cursors not loading correctly
Browse files Browse the repository at this point in the history
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
  • Loading branch information
amaitland committed Apr 18, 2022
1 parent 94b524b commit f7b593b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions CefSharp.Wpf/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1007,16 +1007,7 @@ protected virtual void OnCursorChange(IntPtr handle, CursorType type, CursorInfo
{
UiThreadRunAsync(() =>
{
//Workaround for upstream issue
//See #4021
if (EmbeddedCursor.TryLoadCursor(type, out IntPtr cursorHandle))
{
Cursor = CursorInteropHelper.Create(new SafeFileHandle(cursorHandle, ownsHandle: false));
}
else
{
Cursor = CursorInteropHelper.Create(new SafeFileHandle(handle, ownsHandle: false));
}
Cursor = CursorInteropHelper.Create(new SafeFileHandle(handle, ownsHandle: false));
});
}
}
Expand Down

0 comments on commit f7b593b

Please sign in to comment.