Does anyone know how to determine in which direction the scroll will move when the user lifts his finger, i.e. when is scrollViewDidEndDragging called?
In particular, when paging is set to represent the scroll.
In most cases, I can simply track and check the contentOffset in scrollViewDidScroll, however there are special cases when the user quickly switches the screen. In some cases, the LEFT-RIGHT-LEFT movement will scroll to the next page, while in others the template will remain on one page.
I assume that he needs to do something with the acceleration (the difference between the last few points) of the touch.
(I'm on iOS4.3 on iPad)
source
share