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:
parent
7c25ce81e1
commit
8d927920cb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user