From 4de7ee4ce068ca0b427093784f0b961f7ba4c53a Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 11 Sep 2021 04:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A7=A6=E5=B1=8F=E5=92=8C?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E4=BA=A4=E4=BA=92=E7=9A=84=E7=BB=86=E8=8A=82?= =?UTF-8?q?=EF=BC=8C=E6=BB=91=E6=9D=A1=E5=8F=AF=E4=BB=A5=E6=8B=96=E5=87=BA?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E4=BD=86=E4=B8=8D=E5=A4=B1=E5=8E=BB=E7=84=A6?= =?UTF-8?q?=E7=82=B9=20close=20#279?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 4dea6da1..63d5b2f6 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -196,6 +196,7 @@ function love.touchpressed(id,x,y) end x,y=ITP(xOy,x,y) lastX,lastY=x,y + WIDGET.cursorMove(x,y) if SCN.touchDown then SCN.touchDown(x,y)end if kb.hasTextInput()then kb.setTextInput(false)end end @@ -204,10 +205,6 @@ function love.touchmoved(_,x,y,dx,dy) x,y=ITP(xOy,x,y) if SCN.touchMove then SCN.touchMove(x,y,dx/SCR.k,dy/SCR.k)end WIDGET.drag(x,y,dx/SCR.k,dy/SCR.k) - if touching then - WIDGET.cursorMove(x,y) - if not WIDGET.sel then touching=false end - end end function love.touchreleased(id,x,y) if SCN.swapping then return end