mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Properly set event.buttons value on mousemove
This commit is contained in:
parent
f7fb130a2a
commit
42ee1a86f6
3 changed files with 6 additions and 5 deletions
|
@ -2286,6 +2286,10 @@ where
|
|||
_ => event,
|
||||
};
|
||||
|
||||
if let MouseButtonEvent(MouseEventType::Click, ..) = event {
|
||||
self.pressed_mouse_buttons = 0;
|
||||
}
|
||||
|
||||
let msg = ConstellationControlMsg::SendEvent(destination_pipeline_id, event);
|
||||
let result = match self.pipelines.get(&destination_pipeline_id) {
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue