Skip to content

Commit

Permalink
Avoid applying no-op mouse movement in PassThroughInputManager
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jan 10, 2024
1 parent de5ad34 commit 91185b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osu.Framework/Input/PassThroughInputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ protected override bool Handle(UIEvent e)
switch (e)
{
case MouseMoveEvent mouseMove:
new MousePositionAbsoluteInput { Position = mouseMove.ScreenSpaceMousePosition }.Apply(CurrentState, this);
if (mouseMove.ScreenSpaceMousePosition != CurrentState.Mouse.Position)
new MousePositionAbsoluteInput { Position = mouseMove.ScreenSpaceMousePosition }.Apply(CurrentState, this);
break;

case MouseDownEvent mouseDown:
Expand Down

0 comments on commit 91185b1

Please sign in to comment.