a

    Alex Bieliaiev

    1 year ago
    Hi guys, I have a question about
    nestedScroll
    thing. So I have a
    ModalBottomSheetLayout
    and a vertically scrollable column within that bottom sheet.
    ModalBottomSheetLayout
    participates in the nested scrolling (please see
    PreUpPostDownNestedScrollConnection
    ). As far, as I understand the logic,
    ModalBottomSheetLayout
    consumes entire scroll delta through the
    onPreScroll
    , so the actual scroll target (the child column) doesn't receive any delta at all. This results into the bottom sheet being dragged vertically instead of the column being scrolled. Any suggestions?
    Albert Chang

    Albert Chang

    1 year ago
    When the bottom sheet is fully expanded, its children should start to scroll. What is your problem?
    a

    Alex Bieliaiev

    1 year ago
    I think I described my problem in the initial message. What's unclear about it?
    Albert Chang

    Albert Chang

    1 year ago
    This results into the bottom sheet being dragged vertically instead of the column being scrolled.
    If you mean before the bottom sheet is fully expanded, then this is the intended behavior.
    a

    Alex Bieliaiev

    1 year ago
    No, the bottom sheet is fully expanded. Now I try to scroll the child column, but bottom sheet intercepts the scrolling.
    Albert Chang

    Albert Chang

    1 year ago
    Bottom sheet only consumes delta it can consume. See here.
    If you post your code we can check.
    a

    Alex Bieliaiev

    1 year ago
    Works fine in a standalone setup
    Yes, probably I messed something up in my implementation
    Yes, it's my fault in the end. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1614768328100000?thread_ts=1614530232.195400&cid=CJLTWPH7S resulted in the SwipeableState.processNewAnchors being cancelled, so the last three lines are not executed. Then the bounds of a bottom sheet are incorrect.