Skip to content

Commit f8fcc4a

Browse files
committed
do not show hover text when painting, dragging a cell, or when the mouse has left
1 parent 98121c3 commit f8fcc4a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ private void DrawData(List<RollColumn> visibleColumns, int firstVisibleRow, int
189189
_renderer.PrepDrawString(Font, _foreColor);
190190

191191
Cell currentCell = new();
192-
Cell mouseCell = ShowColumnTextOnHover ? CurrentCell : null;
192+
Cell mouseCell = null;
193+
if (ShowColumnTextOnHover && _draggingCell == null && !IsPaintDown)
194+
{
195+
mouseCell = CurrentCell;
196+
}
193197
if (HorizontalOrientation)
194198
{
195199
for (int j = 0; j < visibleColumns.Count; j++)

src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ protected override void OnMouseLeave(EventArgs e)
10841084
bool refresh = false;
10851085
_currentX = null;
10861086
_currentY = null;
1087-
if (IsHoveringOnColumnCell)
1087+
if (IsHoveringOnColumnCell || ShowColumnTextOnHover)
10881088
{
10891089
refresh = true;
10901090
}

0 commit comments

Comments
 (0)