mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 22:33:13 +08:00
Fix tests exploding because of PTIM sync killing indirect touch position tracking
This commit is contained in:
parent
094b71edec
commit
c2ab9b8106
@ -61,7 +61,9 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
|
||||
protected override bool OnMouseMove(MouseMoveEvent e)
|
||||
{
|
||||
if (!updatingMousePositionFromTouch)
|
||||
// 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)
|
||||
{
|
||||
trackPositionOfIndirectTouches = false; // user is moving their mouse or pen, assume hovering play style -- position from mouse hover, clicking from touches.
|
||||
positionTrackingTouch = null;
|
||||
|
Loading…
Reference in New Issue
Block a user