mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Set compositor's cursor_pos properly (#32718)
This commit is contained in:
parent
db4cba4d6d
commit
6cb95827a3
1 changed files with 1 additions and 0 deletions
|
@ -1550,6 +1550,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
|
|||
None => return,
|
||||
};
|
||||
|
||||
self.cursor_pos = cursor;
|
||||
let event = MouseMoveEvent(result.point_in_viewport, Some(result.node.into()), 0);
|
||||
let msg = ConstellationMsg::ForwardEvent(result.pipeline_id, event);
|
||||
if let Err(e) = self.constellation_chan.send(msg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue