尝试修复手机端文本框响应逻辑错误

This commit is contained in:
MrZ626
2021-05-19 16:15:32 +08:00
parent 092c944d27
commit 59848cd559
2 changed files with 27 additions and 18 deletions

View File

@@ -189,9 +189,7 @@ function love.touchreleased(id,x,y)
WIDGET.press(x,y,1)
WIDGET.release(x,y)
touching=false
if WIDGET.sel and not WIDGET.sel.keepFocus then
WIDGET.unFocus()
end
WIDGET.unFocus()
end
if SCN.touchUp then SCN.touchUp(x,y)end
if(x-lastX)^2+(y-lastY)^2<62 then