mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Auto merge of #10321 - pcwalton:webrender-mouse-move, r=glennw
compositing: Send only one mouse move event if WebRender is in use. In WebRender mode, we were sending two mouse move events: one with the proper coordinates and one with the wrong coordinates, because of incorrect fall-through. The script task would usually (but not always, depending on timing) ignore the first event in favor of the second event, resulting in incorrect mouse move event coordinates in most cases. Closes servo/webrender#238. Closes #10298. r? @metajack <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10321) <!-- Reviewable:end -->
This commit is contained in:
commit
0bf0f61a56
1 changed files with 1 additions and 0 deletions
|
@ -1346,6 +1346,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
.send(ConstellationControlMsg::SendEvent(root_pipeline_id,
|
.send(ConstellationControlMsg::SendEvent(root_pipeline_id,
|
||||||
event_to_send))
|
event_to_send))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
match self.find_topmost_layer_at_point(cursor / self.scene.scale) {
|
match self.find_topmost_layer_at_point(cursor / self.scene.scale) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue