Skip to content

BUG: Multiple scrollable widget  #28

@ImDeZz

Description

@ImDeZz

Hi

I had to use the package on Flutter Web, but my application had multiple other scrollable widgets inside the DraggableScrollbar.

Those scrollables were not messing with eachother and were working properly, except for the scrollthumb, which moved automatically when the Carousel did, and automatically when the vertical ListView was scrolled.

I took a look into the code, and found a bug inside, and fixed it.
The problem was, that the thumb was moved by every ScrollNotification, and not just by its own controller's.

image

Proposed solution:
Filter only the local notifications, with the notification depth of 0, and do not move the thumb, when the notification comes from a remote notification.

image

This has fixed it for me.
Thank you for the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions