diff --git a/CHANGELOG.md b/CHANGELOG.md index e47594534f..0cdaec60fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Unreleased` header. # Unreleased +- On X11, fix a bug where some mouse events would be unexpectedly filtered out. + # 0.29.13 - On Web, fix possible crash with `ControlFlow::Wait` and `ControlFlow::WaitUntil`. diff --git a/src/platform_impl/linux/x11/util/mouse.rs b/src/platform_impl/linux/x11/util/mouse.rs index 212ea57267..9f22266da3 100644 --- a/src/platform_impl/linux/x11/util/mouse.rs +++ b/src/platform_impl/linux/x11/util/mouse.rs @@ -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), };