Skip to content

Commit

Permalink
Fix #5075: stop panning on full-screen visualisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Procrat committed May 3, 2023
1 parent bb8f910 commit 1f3d386
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/gui/view/graph-editor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2794,17 +2794,8 @@ fn new_graph_editor(app: &Application) -> GraphEditor {
// ========================

frp::extend! { network
no_vis_selected <- out.some_visualisation_selected.on_false();
some_vis_selected <- out.some_visualisation_selected.on_true();

set_navigator_false <- inputs.set_navigator_disabled.on_true();
set_navigator_true <- inputs.set_navigator_disabled.on_false();

disable_navigator <- any_(&set_navigator_false,&some_vis_selected);
enable_navigator <- any_(&set_navigator_true,&no_vis_selected);

model.navigator.frp.set_enabled <+ bool(&disable_navigator,&enable_navigator);

navigator_disabled <- out.some_visualisation_selected.or(&inputs.set_navigator_disabled);
model.navigator.frp.set_enabled <+ navigator_disabled.not();
out.navigator_active <+ model.navigator.frp.enabled;
}

Expand Down

0 comments on commit 1f3d386

Please sign in to comment.