fix: finish extrude grip preview integration

This commit is contained in:
Hakan Seven committed 2026-09-03 12:52:03 +03:00
1 parent 46323379b3
commit 4679eb2a5e
3 files changed
+9 -7

No files matched your search

+7 -5
View File
@@ -2783,12 +2783,14 @@ impl OpenCADStudio {
// press starts a box selection, so without this they'd only
// close on the second click (issue #104).
self.tabs[i].properties.color_picker_open = false;
// Click anywhere outside the popup dismisses it. The
// menu's own buttons live above this mouse_area, so a
// press that reaches here means the cursor is not on
// any menu item.
if self.grip_popup.take().is_some() {
// Click anywhere outside the popup dismisses it. A hover popup must
// not swallow a grip click beneath it; a pinned popup was opened by an
// explicit click, so its outside click only dismisses the menu.
if let Some(popup) = self.grip_popup.take() {
self.grip_hover = None;
if popup.pinned {
return Task::none();
}
}
// Outside-click dismiss for the visibility-state dropdown
// (its buttons sit above this mouse_area).