@ -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