mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 08:22:56 +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)
|
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)
|
if (!host.IsActive.Value)
|
||||||
return base.Handle(e);
|
return base.Handle(e);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user