mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Send some more data with the cursor-changed event
This commit is contained in:
@@ -1336,6 +1336,8 @@ void WebContents::OnCursorChange(const content::WebCursor& cursor) {
|
||||
if (cursor.IsCustom()) {
|
||||
Emit("cursor-changed", CursorTypeToString(info),
|
||||
gfx::Image::CreateFrom1xBitmap(info.custom_image),
|
||||
gfx::Rect(info.custom_image.width(), info.custom_image.height()),
|
||||
info.hotspot,
|
||||
info.image_scale_factor);
|
||||
} else {
|
||||
Emit("cursor-changed", CursorTypeToString(info));
|
||||
|
||||
Reference in New Issue
Block a user