InputRoll - only refresh on mouseLeave if necessary

This commit is contained in:
adelikat 2019-12-31 12:41:21 -06:00
parent 098cac3f60
commit c8c63f29f0
1 changed files with 11 additions and 1 deletions

View File

@ -1076,13 +1076,23 @@ namespace BizHawk.Client.EmuHawk
protected override void OnMouseLeave(EventArgs e)
{
bool refresh = false;
_currentX = null;
_currentY = null;
if (IsHoveringOnColumnCell)
{
refresh = true;
}
CurrentCell = null;
IsPaintDown = false;
_columnResizing = null;
_hoverTimer.Stop();
Refresh();
if (refresh)
{
Refresh();
}
base.OnMouseLeave(e);
}