From 6559a405e136a850b800d0ace2cd2c9ab3b66f0c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 13 Aug 2021 22:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=89=E4=B8=ADlistBox?= =?UTF-8?q?=E6=97=B6=E6=8C=89=E7=A9=BA=E6=A0=BC=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index 5599abb9..7a22202b 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -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)