mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.1k stars 2.88k forks source link

osc.lua: don't hide osc when touch is active #14571

Closed na-na-hi closed 2 months ago

na-na-hi commented 2 months ago

This lets touch events activate a separate timeout for osc hiding so that the osc only hides when both mouse and touch timeout are expired. This is the general expectation with touchscreen UI, and also fixes platforms which reset the mouse position when all fingers leave the touchscreen (e.g. sway).

Fixes: #13985

github-actions[bot] commented 2 months ago

Download the artifacts for this pull request:

Windows * [mpv-i686-w64-mingw32](https://nightly.link/mpv-player/mpv/actions/artifacts/1713721744.zip) * [mpv-x86_64-w64-mingw32](https://nightly.link/mpv-player/mpv/actions/artifacts/1713724980.zip) * [mpv-x86_64-windows-msvc](https://nightly.link/mpv-player/mpv/actions/artifacts/1713737809.zip)
macOS * [mpv-macos-12-intel](https://nightly.link/mpv-player/mpv/actions/artifacts/1713720998.zip) * [mpv-macos-13-intel](https://nightly.link/mpv-player/mpv/actions/artifacts/1713723734.zip) * [mpv-macos-14-arm](https://nightly.link/mpv-player/mpv/actions/artifacts/1713722409.zip)