DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration: no live-corner widget while the text cursor is loaded (#186)
aiongg29d8d56e6738
diff --git a/crates/tools/src/select.rs b/crates/tools/src/select.rsindex 28a27de01..f2b3c1820 100644--- a/crates/tools/src/select.rs+++ b/crates/tools/src/select.rs@@ -995,7 +995,8 @@ impl Tool for SelectionTool {Drag::Move { .. } | Drag::Resize { .. } | Drag::Rotate { .. } | Drag::Anchor { .. } => self.guides.clone(),_ => vec![],};- if !self.direct {+ // The loaded text cursor places text: the frame's corners aren't edited meanwhile.+ if !self.direct && self.loaded.and_then(|l| l.resolve(cx.doc)).is_none() {if let Some(f) = self.live_corners(cx) {out.extend(f.diamonds(cx.zoom).into_iter().map(Overlay::LiveCornerDiamond));} else if let Some(f) = corners::live_frame(cx) {