Fix overlay not disappearing when losing hover from the last pixel

OnMouseMove isn't invoked when hover is lost.
This commit is contained in:
smoogipoo 2018-06-22 13:32:19 +09:00
parent 72aee8344e
commit 67a067ffa5
1 changed files with 6 additions and 0 deletions

View File

@ -156,6 +156,12 @@ protected override bool OnHover(InputState state)
return true;
}
protected override void OnHoverLost(InputState state)
{
schedulePopOut();
base.OnHoverLost(state);
}
private void schedulePopOut()
{
popOutDelegate?.Cancel();