1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 13:27:23 +08:00

Add comment regarding HandlePositionalInput

This commit is contained in:
David Zhao 2019-03-20 19:59:54 +09:00
parent 2ff7aa6c2e
commit 2e9d823af4

View File

@ -164,6 +164,9 @@ namespace osu.Game.Screens.Play
private ScheduledDelegate pushDebounce;
protected VisualSettings VisualSettings;
// HandlePositionalInput is being set to true here because IsHovered will not update unless we do so.
public override bool HandlePositionalInput => true;
private bool readyForPush => player.LoadState == LoadState.Ready && IsHovered && GetContainingInputManager()?.DraggedDrawable == null;
private void pushWhenLoaded()