diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 5184e9351c4e9fc432f1181282fc62207f56fef2..eb4cb978c817da081c1976b335dc25fb1c5fc75f 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -542,7 +542,7 @@ impl EditorElement { text_hitbox: &Hitbox, cx: &mut ViewContext, ) { - if cx.default_prevented() { + if !text_hitbox.is_hovered(cx) || cx.default_prevented() { return; }