feat(ui): refine ribbon and view navigation

This commit is contained in:
Hakan Seven 2026-08-04 18:21:52 +03:00
commit d1f9055901
14 changed files with 466 additions and 116 deletions

View file

@ -4,8 +4,7 @@ impl OpenCADStudio {
pub(super) fn dispatch_inquiry(&mut self, cmd: &str, i: usize) -> Option<Task<Message>> {
match cmd {
"3DORBIT" => {
self.command_line
.push_info(crate::t!("3D Orbit: drag with right mouse button.").as_ref());
self.tabs[i].orbit_mode = true;
}
// ── Selection utilities ───────────────────────────────────────

View file

@ -76,9 +76,10 @@ impl OpenCADStudio {
// template-property override too (#239).
self.restore_add_selected_defaults();
}
// Starting any command leaves interactive PAN mode (the PAN arm below
// re-enables it).
// Starting any command leaves interactive navigation modes (their own
// command arms below re-enable the selected one).
self.tabs[i].pan_mode = false;
self.tabs[i].orbit_mode = false;
// Reset the last committed point so the first click of the new command
// is not constrained by ortho/polar relative to a previous command's endpoint.
self.last_point = None;