Skip to content

Commit

Permalink
Fix mouse clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
jguhlin committed Dec 3, 2024
1 parent 5d5ece1 commit 5ffe2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fakeminimap2/src/ui/app_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl AppDisplay {
pub fn handle_click(&mut self, col: u16, row: u16) {
if self.query_list_rect.contains(Position { x: col, y: row }) {
// Calculate offset from the top of the list
let offset = row.saturating_sub(self.query_list_rect.y.saturating_sub(1));
let offset = row.saturating_sub(self.query_list_rect.y).saturating_sub(1);

if offset >= self.state.query_sequences_list.len() as u16 {
return;
Expand Down

0 comments on commit 5ffe2a8

Please sign in to comment.