romandanylyk / PageIndicatorView

An page indicator for Android ViewPager
4.62k stars 551 forks source link

RTL mode: animation inconsistent #97

Open rbiddulph opened 5 years ago

rbiddulph commented 5 years ago

With RTL mode set to Auto or enabled, and using the RTLViewPager from Duolingo at https://github.com/duolingo/rtl-viewpager the page indicator sometimes skips from the first blob to the last blob when swiping through the view pager. This is evident when a viewPager has 3 items in it, swiping from pos 0 to 1 is fine, but 1 to 2 shows an animation in the indicator going from 0 to 2.

devabir93 commented 5 years ago

i found the solution just remove this line dots.setSelection(position); from addOnPageChangeListener as the readme recommended and it will work