修复选中selector按空格报错
This commit is contained in:
@@ -591,6 +591,7 @@ function WIDGET.press(x,y)
|
||||
elseif W.type=="slider"then
|
||||
WIDGET.drag(x,y)
|
||||
elseif W.type=="selector"then
|
||||
if x then
|
||||
local s=W.select
|
||||
if x<W.x+W.w*.5 then
|
||||
if s>1 then
|
||||
@@ -610,6 +611,7 @@ function WIDGET.press(x,y)
|
||||
SFX.play("prerotate")
|
||||
end
|
||||
end
|
||||
end
|
||||
if W.hide and W.hide()then WIDGET.sel=nil end
|
||||
end
|
||||
function WIDGET.drag(x,y,dx,dy)
|
||||
|
||||
Reference in New Issue
Block a user