Get scrolling direction in a scrollview?
<p>This should be pretty straightforward but it seems that I missed something --- how do you figure out the direction (left/right/up/down) of a scrolling event for a ScrollView?</p>

<p>The first thing that comes to mind is to store getScrollX() and getScrollY(), then compare them in the next call to the onTouchListener. Is that the right way of doing things?</p>

<p>I'm implementing a custom HorizontalScrollView and I need to disable scrolling and page swipes in one direction only. </p>
