Skip to content

Commit

Permalink
Fix underflow in wicket in a cross-screen interaction (#5884)
Browse files Browse the repository at this point in the history
Closes #5877 (see
#5877 (comment)
for the reproduction steps)
  • Loading branch information
jgallagher authored Jun 12, 2024
1 parent e751be2 commit 5f75a98
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions wicket/src/state/rack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,8 @@ impl RackState {
pub fn left_or_right(&mut self) {
match self.selected {
ComponentId::Sled(i) => {
if self.left_column {
self.left_column = false;
self.selected = ComponentId::Sled(i + 1);
} else {
self.left_column = true;
self.selected = ComponentId::Sled(i - 1);
}
self.selected = ComponentId::Sled(i ^ 1);
self.set_column();
}
_ => (),
}
Expand Down

0 comments on commit 5f75a98

Please sign in to comment.