Bug P3
Status Update
Comments
[Deleted User] <[Deleted User]> #2
I found a bug and it looks like similar.
It occurs in my app and even in official sample -https://github.com/android/views-widgets-samples/tree/main/ViewPager2
Run the app -> Open any screen -> fast swipe up multiple times. Tabs will switch sometimes with no reason (video)
I checked available versions: 1.0.0, 1.1.0-alpha01 and 1.1.0-beta01
It occurs in my app and even in official sample -
Run the app -> Open any screen -> fast swipe up multiple times. Tabs will switch sometimes with no reason (video)
I checked available versions: 1.0.0, 1.1.0-alpha01 and 1.1.0-beta01
Description
All latest versions affected:
See attached video. You can try running the sample app and simply drag the bottom sheet. Sometimes - usually when the thumb ends up above the actual bottom sheet header - the viewpager allows horizontal swiping in the middle of a vertical swiping operation. This causes very bad UX. Users are complaining about the instability of the swiping functionality. Please advise!
Please note that the sample demonstrates this issue with
SwipeRefreshLayout
. I have confirmed this problem without it too.Nothing fancy about the viewpager fragments:
Now, if I replace the
BottomSheetBehavior
with the following class, the unwanted glitch described above disappears. But, then I'm not able to swipe between the viewpager tabs :P. Without aSwipeRefreshLayout
, however, this trick would actually work (it seems).