修复选中listBox时按空格会报错

This commit is contained in:
MrZ626
2021-08-13 22:22:11 +08:00
parent 45ec45c206
commit 6559a405e1

View File

@@ -1130,6 +1130,7 @@ function listBox:remove()
end
end
function listBox:press(x,y)
if not(x and y)then return end
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
self:drag(0,0,0,0)