bugfix(x11): fix incorrect delta filtering
Invert the mouse delta filter, so it aligns with the intention of filtering values lower than epsilon. Signed-off-by: John Nunley <dev@notgull.net> Closes: https://github.com/rust-windowing/winit/issues/3558
This commit is contained in:
parent
388c40b1e0
commit
f6f1c45a72
2 changed files with 3 additions and 2 deletions
|
|
@ -30,8 +30,8 @@ macro_rules! consume {
|
|||
let this = $this;
|
||||
let (x, y) = match (this.x.abs() < <$ty>::EPSILON, this.y.abs() < <$ty>::EPSILON) {
|
||||
(true, true) => return None,
|
||||
(true, false) => (this.x, 0.0),
|
||||
(false, true) => (0.0, this.y),
|
||||
(false, true) => (this.x, 0.0),
|
||||
(true, false) => (0.0, this.y),
|
||||
(false, false) => (this.x, this.y),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue