Skip to content

Commit

Permalink
add missing active check
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Oct 2, 2023
1 parent 13f800e commit f2f6129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarge-frontend-sdl/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl Menu {
Event::KeyDown { keycode: Some(Keycode::Up), .. } if self.active => {
self.cursor -= 1;
},
Event::MouseWheel { y, .. } => {
Event::MouseWheel { y, .. } if self.active => {
//self.scroll -= *y * MENU_ITEM_HEIGHT as i32 / 2;
self.cursor -= *y as isize;
},
Expand Down

0 comments on commit f2f6129

Please sign in to comment.