RecyclerTabLayout icon indicating copy to clipboard operation
RecyclerTabLayout copied to clipboard

Invalid indicator position

Open rt1shnik opened this issue 5 years ago • 0 comments

Sometimes when I change position of ViewPager I see that current tab at RecyclerTabLayout stay the same. I've figure out after some debugging where is problem. See at method updateCurrentIndicatorPosition. This method don't change adapter's indicatorPosition if dx is 0. So RecyclerTabLayout's position and ViewPager's position do not match.
https://github.com/nshmura/RecyclerTabLayout/blob/16e414044ea79d984a2c3c9848cd029f29ae5587/library/src/main/java/com/nshmura/recyclertablayout/RecyclerTabLayout.java#L310-L325

rt1shnik avatar Aug 11 '19 09:08 rt1shnik