Preserve diagram focus across edits, history and passive saves
This commit is contained in:
@@ -486,7 +486,8 @@ fn diagram(app: &App) -> View<'_, Message> {
|
||||
crate::diagram::focus::wrap(
|
||||
widget::canvas(program).width(Fill).height(Fill),
|
||||
program.context,
|
||||
crate::app::diagram_removal::enabled(app),
|
||||
crate::app::diagram_removal::focus_enabled(app),
|
||||
app.busy,
|
||||
Message::DiagramTraverse
|
||||
),
|
||||
widget::canvas(crate::diagram::PortLabels(program))
|
||||
|
||||
Reference in New Issue
Block a user