Skip to content

Commit

Permalink
fix: UI cursor proximity broken in fullscreen
Browse files Browse the repository at this point in the history
A bug introduced by be52ba2.

closes #1016
  • Loading branch information
tomasklaen committed Nov 11, 2024
1 parent 216c134 commit 483bfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uosc/lib/cursor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ function handle_mouse_pos(_, mouse)
if not mouse then return end
if cursor.last_hover and not mouse.hover then
cursor:leave()
elseif not cursor.hidden or not cursor.last_hover and mouse.hover then
elseif not (cursor.last_hover == false and mouse.hover == false) then -- filters out duplicate mouse out events
cursor:move(mouse.x, mouse.y)
end
cursor.last_hover = mouse.hover
Expand Down

0 comments on commit 483bfa8

Please sign in to comment.