lsjwzh / RecyclerViewPager

Deprecated
Apache License 2.0
3.53k stars 667 forks source link

Fix: onPageChanged is sometimes not fired. #139

Closed kazukinr closed 7 years ago

kazukinr commented 7 years ago

OnPageChangedListener#onPageChanged is sometimes not called on RecyclerViewPager flung.

To reproduce this issue, please fling RecyclerViewPager slowly. Then onPageChanged will not be probably called. mPositionBeforeScroll has been updated by currentPosition while flinging RecyclerViewPager.

bravekingzhang commented 7 years ago

thanks you ,I also encounter this problem.

I find this bug can be reproduced with the following steps:

  1. removing the item in the position 0;
  2. and then slide current position 0 the left
  3. the you will see onPageChanged not fired.