mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
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:
committed by
Kirill Chibisov
parent
b1dad450ee
commit
7601a1506d
@@ -11,6 +11,8 @@ Unreleased` header.
|
|||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On X11, fix a bug where some mouse events would be unexpectedly filtered out.
|
||||||
|
|
||||||
# 0.29.13
|
# 0.29.13
|
||||||
|
|
||||||
- On Web, fix possible crash with `ControlFlow::Wait` and `ControlFlow::WaitUntil`.
|
- On Web, fix possible crash with `ControlFlow::Wait` and `ControlFlow::WaitUntil`.
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ macro_rules! consume {
|
|||||||
let this = $this;
|
let this = $this;
|
||||||
let (x, y) = match (this.x.abs() < <$ty>::EPSILON, this.y.abs() < <$ty>::EPSILON) {
|
let (x, y) = match (this.x.abs() < <$ty>::EPSILON, this.y.abs() < <$ty>::EPSILON) {
|
||||||
(true, true) => return None,
|
(true, true) => return None,
|
||||||
(true, false) => (this.x, 0.0),
|
(false, true) => (this.x, 0.0),
|
||||||
(false, true) => (0.0, this.y),
|
(true, false) => (0.0, this.y),
|
||||||
(false, false) => (this.x, this.y),
|
(false, false) => (this.x, this.y),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user