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

Preferentially dispatch events to topmost scroll layer siblings. #239

Merged
merged 1 commit into from Mar 15, 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

Preferentially dispatch events to topmost scroll layer siblings.

Addresses servo/servo#9867.
  • Loading branch information
pcwalton committed Mar 15, 2016
commit e8d30f0283643a12c0b471e0798a696acbf97438
@@ -643,7 +643,7 @@ impl Frame {
self.layers.get(&scroll_layer_id).and_then(|layer| {
let transform = parent_transform.mul(&layer.local_transform);

for child_layer_id in &layer.children {
for child_layer_id in layer.children.iter().rev() {
if let Some(layer_id) = self.get_scroll_layer(cursor,
*child_layer_id,
&transform) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.