Merge pull request #12575 from ywxzm/v3

fix onTouch begin don't return value
This commit is contained in:
pandamicro 2015-07-07 14:57:13 +08:00
commit 8f0cf8c3e6
1 changed files with 1 additions and 1 deletions

View File

@ -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