In reached positions in left/right/top/bottom sides ScrollView:getContentPosition() returns wrong coords (x/y) . Visually a content stopped, but coords shows like it moves ±10px if you move cursor beyond the limits of ScrollView.
if ( phase == "began" ) then print( "Scroll view was touched" ) elseif ( phase == "moved" ) then x, y = event.target:getContentPosition() elseif ( phase == "ended" ) then print( "Scroll view was released" ) end if ( event.limitReached ) then if ( event.direction == "up" ) then print( "Reached top limit" ) elseif ( event.direction == "down" ) then print( "Reached bottom limit" ) elseif ( event.direction == "left" ) then print( "Reached left limit" ) elseif ( event.direction == "right" ) then print( "Reached right limit" ) end print ("X=",x, "Y=",y) end
Please help, how to resolve it?