Skip to content

[BottomSheetBehavior] Scrolling within a ViewPager2 #2112

Open
@DantheCodingGui

Description

Description: Full description of issue here

I have a ViewPager2 setup with multiple fragments, in one of them I have a persistent bottom sheet.

I'm having an issue whenever I try and drag the bottom sheet, and the parent viewpager will intercept the gesture, interrupting the bottom sheet drag whenever there is any horizontal movement in the gesture.

bottom.sheet.bug.mp4

Expected behavior:

When dragging the bottom sheet, regardless of direction, ViewPager (or any other parents) can't intercept it. Similar behavior to RecyclerView

Android API version:
29

Material Library version:
Tried both 1.3.0 and 1.4.0-alpha01

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions