Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Merge remote-tracking branch 'origin' into divs
Nathan Sobo81957c49d523
diff --cc crates/gpui/src/app/window.rsindex e1811b6655b,4b8b0534d53..f912ee46f56--- a/crates/gpui/src/app/window.rs+++ b/crates/gpui/src/app/window.rs@@@ -789,8 -783,16 +790,13 @@@ impl<'a> WindowContext<'a>// Find regions which still overlap with the mouse since the last MouseDown happenedfor (mouse_region, _) in self.window.mouse_regions.iter().rev() {if clicked_region_ids.contains(&mouse_region.id()) {- if mouse_region- .bounds- .contains_point(self.window.mouse_position)- {+ if mouse_region.bounds.contains_point(self.mouse_position()) {valid_regions.push(mouse_region.clone());+ } else {+ // Let the view know that it hasn't been clicked anymore+ if mouse_region.notify_on_click {+ notified_views.insert(mouse_region.id().view_id());+ }}}}