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:
Antonio Scandurra 2024-03-11 15:29:44 +01:00 committed by GitHub
parent 45c4d35da8
commit 830e107921
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -543,6 +543,8 @@ impl EditorElement {
if let Some(point) = point_for_position.as_valid() {
hover_at(editor, Some(point), cx);
Self::update_visible_cursor(editor, point, position_map, cx);
} else {
hover_at(editor, None, cx);
}
} else {
editor.hide_hovered_link(cx);