|
|
@ -473,8 +473,8 @@ function View:getWindowSize()
|
|
|
|
return rect.width, rect.height
|
|
|
|
return rect.width, rect.height
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function View:getMousePos()
|
|
|
|
function View:getMousePos(view_rect)
|
|
|
|
local rect = self.frame_body
|
|
|
|
local rect = view_rect or self.frame_body
|
|
|
|
local x,y = dscreen.getMousePos()
|
|
|
|
local x,y = dscreen.getMousePos()
|
|
|
|
if rect and rect:inClipGlobalXY(x,y) then
|
|
|
|
if rect and rect:inClipGlobalXY(x,y) then
|
|
|
|
return rect:localXY(x,y)
|
|
|
|
return rect:localXY(x,y)
|
|
|
|