Hello,
I create a widget button called " wi "
local wi=widget.newButton(param)
When I write
wi:addEventListener("tap",function() print(1) end)
or
wi:addEventListener("touch",function() print(1) end)
, the listener works well in the 2 case.
But when the widget is on a group “g”,
local g=display.newGroup() g:insert(wi)
I have that
g:addEventListener("tap",function() print(1) end)
work, but
g:addEventListener("touch",function() print(1) end)
don’t work.
Why ???
Thanks.