lsjwzh / RecyclerViewPager

Deprecated
Apache License 2.0
3.53k stars 667 forks source link

Swiping between views too fast doesn't call onPageChangedListener #147

Open falaksevak opened 7 years ago

falaksevak commented 7 years ago

I'm using this library to create a vertical viewpager experience; however, if I quickly swipe between views, onPageChanged method doesn't get called for any of the items except the last one.

@Override
public void OnPageChanged(final int fromPosition, final int toPosition) {
        Log.e("VUVFPager", "OnPageChanged: " + fromPosition + " : " + toPosition);
}

Has anyone experienced the same thing with their implementation? Any advice on how to fix it?

okuskov commented 7 years ago

I have the same problem. I tried to set singlePageFling to true state but it did not help me too much. At this time OnPageChanged can be skipped time to time as well, when you swipe between views slowly.

pauminku commented 7 years ago

It's happening also to me, only when I swipe slowly OnPageChanged is not called. I tested on vs 1.1.1 and works well, so the isue was introduced in 1.1.2

lsjwzh commented 7 years ago

I will check it!

Hitexroid commented 7 years ago

I have the same problem even in onBindViewHolder Position

LichFaker commented 7 years ago

I have the same problem, the onPageChangedListener just called once and the current position is incorrect, but the view is changed. BTW. I have tried on version 1.1.1, and there is no such problem.