mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-16 07:11:18 +00:00
Hide hover popover when mouse hovers over negative space (#9173)
Fixes https://github.com/zed-industries/zed/issues/8340 Release Notes: - Fixed a bug that would cause hover information to not be dismissed when hovering over negative space.
This commit is contained in:
parent
45c4d35da8
commit
830e107921
1 changed files with 2 additions and 0 deletions
|
@ -543,6 +543,8 @@ impl EditorElement {
|
||||||
if let Some(point) = point_for_position.as_valid() {
|
if let Some(point) = point_for_position.as_valid() {
|
||||||
hover_at(editor, Some(point), cx);
|
hover_at(editor, Some(point), cx);
|
||||||
Self::update_visible_cursor(editor, point, position_map, cx);
|
Self::update_visible_cursor(editor, point, position_map, cx);
|
||||||
|
} else {
|
||||||
|
hover_at(editor, None, cx);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
editor.hide_hovered_link(cx);
|
editor.hide_hovered_link(cx);
|
||||||
|
|
Loading…
Reference in a new issue