mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
servo: Merge #10321 - compositing: Send only one mouse move event if WebRender is in use (from pcwalton:webrender-mouse-move); r=glennw
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 Source-Repo: https://github.com/servo/servo Source-Revision: 0bf0f61a56eae3e3797c73847763e6c8b882d160
This commit is contained in:
parent
fcfe4f1b87
commit
7dc62af17a
@ -1346,6 +1346,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||
.send(ConstellationControlMsg::SendEvent(root_pipeline_id,
|
||||
event_to_send))
|
||||
.unwrap();
|
||||
return
|
||||
}
|
||||
|
||||
match self.find_topmost_layer_at_point(cursor / self.scene.scale) {
|
||||
|
Loading…
Reference in New Issue
Block a user