Skip to content

Commit

Permalink
Rubber banding bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgerhant committed Aug 22, 2024
1 parent 66afc45 commit 659830b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4032,10 +4032,11 @@ impl NodeNetworkInterface {
if *offset == 0 {
return None;
}
if self
.selected_nodes(network_path)
.is_some_and(|selected_nodes| selected_nodes.selected_nodes().any(|selected_node| selected_node == node_id))
{
if self.selected_nodes(network_path).is_some_and(|selected_nodes| {
selected_nodes
.selected_nodes()
.any(|selected_node| selected_node == node_id || self.owned_nodes(node_id, network_path).is_some_and(|owned_nodes| owned_nodes.contains(selected_node)))
}) {
return None;
};
let Some(position) = self.position(node_id, network_path) else {
Expand Down

0 comments on commit 659830b

Please sign in to comment.