鼠标点击按钮后不失去焦点

This commit is contained in:
MrZ626
2020-09-02 00:16:19 +08:00
parent 1f524f5ec0
commit 1ba6f2eae3

View File

@@ -121,6 +121,7 @@ function love.mousereleased(x,y,k,touch,num)
if touch or SCN.swapping then return end
mx,my=xOy:inverseTransformPoint(x,y)
WIDGET.release(mx,my)
WIDGET.moveCursor(mx,my)
if mouseUp[SCN.cur]then
mouseUp[SCN.cur](mx,my,k)
end