Skip to content

Commit 90b1b69

Browse files
committed
Use raw mouse position for thumbnail placement
...instead of the OSC's -5/+10 alignment X, which was noticeable when moving mouse over the middle of the seekbar (the title text changed alignment, as did the thumbnail)
1 parent 05b30df commit 90b1b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patched_osc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ function render_elements(master_ass)
836836
elem_ass:append(tooltiplabel)
837837

838838
-- mpv_thumbnail_script.lua --
839-
display_thumbnail({x=tx, y=ty, a=an}, sliderpos, elem_ass)
839+
display_thumbnail({x=get_virt_mouse_pos(), y=ty, a=an}, sliderpos, elem_ass)
840840
-- // mpv_thumbnail_script.lua // --
841841

842842
end

0 commit comments

Comments
 (0)