1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-06 20:22:56 +08:00

Invert conditional for readability

This commit is contained in:
Dean Herbert 2025-01-29 18:01:00 +09:00
parent c2ab9b8106
commit be88fa7372
No known key found for this signature in database

View File

@ -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;