From c95dbf7776d51d7d9fa287be87d789a84dfacd5a Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 31 Mar 2016 11:26:08 -0700 Subject: [PATCH] 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. --- components/compositing/compositor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 7f6c28c178e..9c35ed60463 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -1346,6 +1346,7 @@ impl IOCompositor { .send(ConstellationControlMsg::SendEvent(root_pipeline_id, event_to_send)) .unwrap(); + return } match self.find_topmost_layer_at_point(cursor / self.scene.scale) {