In my game I have a few scrollViews that are filled with buttons. Per some documentation online, the suggested fix for the fact that you can’t scroll the scrollView if your touch input started on the button is:
elseif event.phase == "moved" then levelSelectGroup:takeFocus( event ) end
This makes sense and works well. But if I scroll the list by flicking it and then try to stop it by tapping, the tap doesn’t stop the page from scrolling - I have to tap and move to stop. I’ve received feedback from users that they found my lists hard to use because of this.
It seems like the right thing would be (in pseudocode) to do something like:
if event.phase == "began" then if scrollView:isScrolling() then levelSelectGroup:takeFocus( event ) end end
But I have no way of testing whether the list is scrolling.
Any suggestions?