mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 03:43:22 +08:00
Invert conditional for readability
This commit is contained in:
parent
c2ab9b8106
commit
be88fa7372
@ -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).
|
// 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.
|
// 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.
|
trackPositionOfIndirectTouches = false; // user is moving their mouse or pen, assume hovering play style -- position from mouse hover, clicking from touches.
|
||||||
positionTrackingTouch = null;
|
positionTrackingTouch = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user