fix: mouse-pos
can be nil (#418)
This commit is contained in:

committed by
GitHub

parent
5a02c6d205
commit
11f9067182
@@ -546,6 +546,7 @@ if options.click_threshold > 0 then
|
|||||||
end
|
end
|
||||||
|
|
||||||
function update_mouse_pos(_, mouse)
|
function update_mouse_pos(_, mouse)
|
||||||
|
if not mouse then return end
|
||||||
if cursor.hover_raw and not mouse.hover then
|
if cursor.hover_raw and not mouse.hover then
|
||||||
handle_mouse_leave()
|
handle_mouse_leave()
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user