mirror of https://github.com/axmolengine/axmol.git
Merge pull request #12575 from ywxzm/v3
fix onTouch begin don't return value
This commit is contained in:
commit
8f0cf8c3e6
|
@ -43,7 +43,7 @@ function Layer:onTouch(callback, isMultiTouches, swallowTouches)
|
|||
event.x = args[1]
|
||||
event.y = args[2]
|
||||
end
|
||||
callback(event)
|
||||
return callback( event )
|
||||
end, isMultiTouches, 0, swallowTouches)
|
||||
self:setTouchEnabled(true)
|
||||
return self
|
||||
|
|
Loading…
Reference in New Issue