0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/player/lua
wm4 152b0e2a8c osc: fix hovering timestamp sticking around when moving mouse away
The OSC calls this "tooltip" (and although a general mechanism, there's
only one instance using it). One particular problem was that with the
default OSC layout, moving the mouse down and out of the window, the
tooltip stuck around, because the returned mouse position was the last
pixel row in the window, which still overlaps with the seek bar.

Instead of introducing mouse_in_window, you could check last_mouse_X for
nil, but I think this is clearer.

This returns (-1, -1) to the caller if the mouse is outside. Kind of
random, but works.
2020-05-16 13:45:16 +02:00
..
assdraw.lua osc: improve look of seekranges 2019-09-02 01:11:04 +03:00
console.lua console: reduce memory usage in default mode 2020-04-10 13:36:10 +02:00
defaults.lua lua: restore change detection with legacy OSD function 2020-05-01 00:59:57 +02:00
options.lua options.lua: avoid unnecessary on_update calls 2020-02-06 22:57:53 +01:00
osc.lua osc: fix hovering timestamp sticking around when moving mouse away 2020-05-16 13:45:16 +02:00
stats.lua stats.lua: don't disable terminal escape sequences on windows 2020-04-23 17:02:38 +03:00
ytdl_hook.lua ytdl_hook: enable runtime changes of script options 2020-03-29 17:45:59 +02:00