Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compositing: Send only one mouse move event if WebRender is in use. #10321

Merged
merged 1 commit into from Apr 1, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

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.
  • Loading branch information
pcwalton committed Mar 31, 2016
commit c95dbf7776d51d7d9fa287be87d789a84dfacd5a
@@ -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) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.