Skip to content

Commit

Permalink
ignore mouse movements if time_diff is unrealistically small
Browse files Browse the repository at this point in the history
  • Loading branch information
justDeeevin committed May 13, 2024
1 parent b67788b commit cad8c7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nuhxboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ impl Application for NuhxBoard {
Ok(diff) => diff,
Err(_) => return Command::none(),
};
if time_diff.as_micros() < 100 {
return Command::none();
}

let mut center = (0.0, 0.0);

Expand Down

0 comments on commit cad8c7e

Please sign in to comment.