1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

Add comment explainng why to block idle updates when host is not active

This commit is contained in:
Dean Herbert 2021-12-27 13:31:07 +09:00
parent 7c25ce81e1
commit 8d927920cb

View File

@ -70,6 +70,9 @@ namespace osu.Game.Input
protected override bool Handle(UIEvent e)
{
// Even when not active, `MouseMoveEvent`s will arrive.
// We don't want these to trigger a non-idle state as it's quite often the user interacting
// with other windows while osu! is in the background.
if (!host.IsActive.Value)
return base.Handle(e);