Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ui: Fix scrollbar mouse down handler (#35131)
Finn Evers08402e25e0cf
diff --git a/crates/ui/src/components/scrollbar.rs b/crates/ui/src/components/scrollbar.rsindex 6a64659f243..7af55b76b71 100644--- a/crates/ui/src/components/scrollbar.rs+++ b/crates/ui/src/components/scrollbar.rs@@ -339,7 +339,7 @@ impl Element for Scrollbar {move |event: &MouseDownEvent, phase, _, _| {if !phase.bubble()|| event.button != MouseButton::Left- || bounds.contains(&event.position)+ || !bounds.contains(&event.position){return;}