updated mpv code to try and fix invisible cursor

This commit is contained in:
2026-04-19 18:13:44 -07:00
parent bafd37fdfb
commit f8230bab9c
2 changed files with 188 additions and 76 deletions
@@ -1123,8 +1123,12 @@ mp.register_script_message('sync-cursor', function()
local mouse = mp.get_property_native('mouse-pos')
if type(mouse) == 'table' and mouse.hover and mouse.x and mouse.y then
cursor:move(mouse.x, mouse.y)
else
cursor:leave()
elseif cursor.x < math.huge and cursor.y < math.huge then
if cursor.hidden then
cursor.hidden = false
Elements:trigger('global_mouse_enter')
end
Elements:update_proximities()
end
cursor:queue_autohide()
request_render()