Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Always stop propagation in div's scroll wheel listener (#9282)

Antonio Scandurrafc9f84446a3e
diff --git a/crates/gpui/src/elements/div.rs b/crates/gpui/src/elements/div.rs
index 1cd9ec567dc..3b65dfb39bd 100644
--- a/crates/gpui/src/elements/div.rs
+++ b/crates/gpui/src/elements/div.rs
@@ -1949,9 +1949,9 @@ impl Interactivity {
scroll_offset.y += delta_y;
}
+ cx.stop_propagation();
if *scroll_offset != old_scroll_offset {
cx.refresh();
- cx.stop_propagation();
}
}
});