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

@@ -6,6 +6,7 @@
- New history-filter option added to define paths to be excluded from the history log feature.
- New command to move the Window to the screen edge (Alt+Arrow) or center (Alt+BS).
- Smaller OSD media info font size and more duplicated and obvious info removed from titles.
- Improved mouse cursor hide behavior.
- libmpv shinchiro 2022-08-11
input.conf changes:

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();