Hi bro
I am training to make drag in scrollviw.the shapes inside the scroll have touch listener also. The problem is the touch of shapes response when I make drag
I want the shape touch listening just on x axis just
How can I make it ?!
this is some part of my code
local function touchListener( event ) if (event.phase == "began") then end if (event.phase == "moved") then display.getCurrentStage():setFocus( event.target) event.target.setFocus=true print ("event.x" ..event.x) local dy = math.abs( ( event.y - event.yStart ) ) -- If the touch on the button has moved more than 10 pixels, -- pass focus back to the scroll view so it can continue scrolling if ( dy \>10) then scrollView:takeFocus( event ) ---here my issue always dy give 0 ?which e.y and e,ystart have same result else event.target.x=event.x ...