修复选中listBox时按空格会报错
This commit is contained in:
@@ -1130,6 +1130,7 @@ function listBox:remove()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function listBox:press(x,y)
|
function listBox:press(x,y)
|
||||||
|
if not(x and y)then return end
|
||||||
x,y=x-self.x,y-self.y
|
x,y=x-self.x,y-self.y
|
||||||
if not(x and y and x>0 and y>0 and x<=self.w and y<=self.h)then return end
|
if not(x and y and x>0 and y>0 and x<=self.w and y<=self.h)then return end
|
||||||
self:drag(0,0,0,0)
|
self:drag(0,0,0,0)
|
||||||
|
|||||||
Reference in New Issue
Block a user