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.

Fix cursor styles not displaying properly (#3493)

Marshall Bowersc10d8a811007
diff --git a/crates/gpui2/src/elements/div.rs b/crates/gpui2/src/elements/div.rs
index 68dca4c9d14..3d7feee21b6 100644
--- a/crates/gpui2/src/elements/div.rs
+++ b/crates/gpui2/src/elements/div.rs
@@ -866,6 +866,7 @@ impl Interactivity {
}
if self.hover_style.is_some()
+ || self.base_style.mouse_cursor.is_some()
|| cx.active_drag.is_some() && !self.drag_over_styles.is_empty()
{
let bounds = bounds.intersect(&cx.content_mask().bounds);
diff --git a/crates/storybook2/src/stories/cursor.rs b/crates/storybook2/src/stories/cursor.rs
index d160fa4f4a0..7d4cf8145a0 100644
--- a/crates/storybook2/src/stories/cursor.rs
+++ b/crates/storybook2/src/stories/cursor.rs
@@ -102,7 +102,6 @@ impl Render for CursorStory {
.w_64()
.h_8()
.bg(gpui::red())
- .hover(|style| style.bg(gpui::blue()))
.active(|style| style.bg(gpui::green()))
.text_sm()
.child(Story::label(name)),