properly react to lack of a mouse cursor

develop
Myk Taylor 2023-01-18 15:44:25 -08:00
parent eae2cec22f
commit a1a4125fd9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -481,7 +481,7 @@ end
function View:getMousePos(view_rect)
local rect = view_rect or self.frame_body
local x,y = dscreen.getMousePos()
if rect and rect:inClipGlobalXY(x,y) then
if rect and x and rect:inClipGlobalXY(x,y) then
return rect:localXY(x,y)
end
end