diff --git a/crates/gpui2/src/elements/div.rs b/crates/gpui2/src/elements/div.rs index 68dca4c9d144a571d894f63f382c2d9489f7251c..3d7feee21b632ee69df47d7cc192c8487c939fb2 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 d160fa4f4a0c15e86e4a5b91c7f011d4b5005d6e..7d4cf8145a034906bb87bb944ae926fff5ab9f3a 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)),