Improved mouse cursor hide behavior

This commit is contained in:
stax76
2022-08-19 06:53:49 +02:00
parent 06ff83b75c
commit 95e31a1d3f
2 changed files with 4 additions and 2 deletions

View File

@@ -1059,8 +1059,9 @@ namespace mpvnet
LastCursorPosition = MousePosition;
LastCursorChanged = Environment.TickCount;
}
else if (Environment.TickCount - LastCursorChanged > 1500 &&
!IsMouseInOSC() && ClientRectangle.Contains(PointToClient(MousePosition)) &&
else if (((Environment.TickCount - LastCursorChanged > 1500 &&
!IsMouseInOSC()) || Environment.TickCount - LastCursorChanged > 5000) &&
ClientRectangle.Contains(PointToClient(MousePosition)) &&
ActiveForm == this && !ContextMenu.IsVisible && !IsCommandPaletteVissible())
CursorHelp.Hide();