From be88fa73728867def00e13f0cb59858c53c35068 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 29 Jan 2025 18:01:00 +0900 Subject: [PATCH] Invert conditional for readability --- osu.Game.Rulesets.Osu/UI/OsuTouchInputMapper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/UI/OsuTouchInputMapper.cs b/osu.Game.Rulesets.Osu/UI/OsuTouchInputMapper.cs index d6eec41584..28709533e8 100644 --- a/osu.Game.Rulesets.Osu/UI/OsuTouchInputMapper.cs +++ b/osu.Game.Rulesets.Osu/UI/OsuTouchInputMapper.cs @@ -63,7 +63,10 @@ namespace osu.Game.Rulesets.Osu.UI { // MouseMoveEvents that don't move the mouse are a fluke and not from a real mouse device. They are probably from PassTroughInputManager syncing state (seen in testing). // Ignore them since the user is not actually using a mouse or pen for aiming. - if (!updatingMousePositionFromTouch && e.ScreenSpaceMousePosition != e.ScreenSpaceLastMousePosition) + if (e.ScreenSpaceMousePosition == e.ScreenSpaceLastMousePosition) + return false; + + if (!updatingMousePositionFromTouch) { trackPositionOfIndirectTouches = false; // user is moving their mouse or pen, assume hovering play style -- position from mouse hover, clicking from touches. positionTrackingTouch = null;