Skip to content

Commit 67d88a8

Browse files
Fixed: crash when using mouse on popup
1 parent 6ad56c3 commit 67d88a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/handler.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ pub fn handle_mouse_events(mouse_event: MouseEvent, app: &mut App) -> AppResult<
112112
return Ok(());
113113
}
114114

115+
if app.show_color_popup || app.show_help_popup {
116+
return Ok(());
117+
}
118+
115119
// If there is a promotion to be done the top_x, top_y, width and height
116120
// values are updated accordingly
117121
if app.board.is_promotion {

0 commit comments

Comments
 (0)