Skip to content

Commit

Permalink
Reset retained click count after mouse released. (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorgy authored Mar 4, 2024
1 parent 21a84d6 commit 8f7f5db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widget/raw_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ impl PointerCrusher {
self.e.wheel_delta = None;
self.e.buttons.remove(&button);
self.e.button = Some(button);
self.e.clone()
let r = self.e.clone();
self.e.count = 0;
r
}

pub fn moved(&mut self, pos: Point) -> MouseEvent {
Expand Down

0 comments on commit 8f7f5db

Please sign in to comment.