pakerfeldt / android-viewflow

A horizontal view scroller library for Android
1.78k stars 694 forks source link

Problem snapping in ListView #38

Closed keyboardr closed 13 years ago

keyboardr commented 13 years ago

I've found an issue where if the viewflow is in a ListView and the ListView starts scrolling while the viewflow is scrolling, the viewflow will be left in an intermediate state. I don't have time to commit this fix, but the gist of it is in the onTouchEvent()

case MotionEvent.ACTION_CANCEL: snapToDestination(); //Add this line mTouchState = TOUCH_STATE_REST;

This won't help with the ListView stealing the focus, but it will at least snap to a section.