updated mpv code to try and fix invisible cursor
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user