From c8c63f29f063c673596304feef53d0c8068d61a1 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 31 Dec 2019 12:41:21 -0600 Subject: [PATCH] InputRoll - only refresh on mouseLeave if necessary --- .../CustomControls/InputRoll/InputRoll.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs index 42bcdca05f..3326e5a7f5 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs @@ -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); }