I have scrollview widget with one child (myrect)
I want to detect the touch ended event for “myrect” however currently it only detects the “began” phase !!
here is the complete code
--main.lua
local widget = require "widget"
local myscrollview = widget.newScrollView{}
local myrect = display.newRect(0, 0, display.contentWidth, 68)
myrect:setFillColor(255,100,100,255)
myscrollview:insert(myrect)
local function ontouch(event)
if event.phase == "ended" then
print("event ended")
end
end
myrect:addEventListener( "touch", ontouch )
what I need is a basic functionality it is strange that corona does not support that or maybe I am missing something
Many thanks [import]uid: 8519 topic_id: 26351 reply_id: 326351[/import]