From 19feb627d897956c060c521004dbc3076946549b Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Tue, 21 Jun 2022 12:38:27 -0700 Subject: [PATCH] Add comment linking to long term plan --- crates/editor/src/element.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 4b86883c55f2ce633ad72e214d8bde197df67e8b..601ad98d8613696327e3247661ead3ef5cb4cd77 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -1427,6 +1427,7 @@ impl Element for EditorElement { } => self.scroll(*position, *delta, *precise, layout, paint, cx), Event::KeyDown { input, .. } => self.key_down(input.as_deref(), cx), Event::MouseMoved { position, .. } => { + // This will be handled more correctly once https://github.com/zed-industries/zed/issues/1218 is completed // Don't trigger hover popover if mouse is hovering over context menu if paint .context_menu_bounds @@ -1443,7 +1444,7 @@ impl Element for EditorElement { { return false; } - + let point = if paint.text_bounds.contains_point(*position) { let (point, overshoot) = paint.point_for_position(&self.snapshot(cx), layout, *position);