I was implementing a scrollView and I noticed as I was using the default code that if I added the default listener
local function scrollListener( event ) local phase = event.phase if ( phase == "began" ) then print( "Scroll view was touched" ) elseif ( phase == "moved" ) then print( "Scroll view was moved" ) elseif ( phase == "ended" ) then print( "Scroll view was released" ) end -- In the event a scroll limit is reached... if ( event.limitReached ) then if ( event.direction == "up" ) then print( "Reached bottom limit" ) elseif ( event.direction == "down" ) then print( "Reached top limit" ) elseif ( event.direction == "left" ) then print( "Reached right limit" ) elseif ( event.direction == "right" ) then print( "Reached left limit" ) end end return true end
The part where event.limitReached doesn’t work at all.
On a second note, does anyone have any idea to create an infinite scrolling scrollview. So that If had multiple pages, lets say hundreds I could have them accessible within a scrollview.