Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset thumb position #55

Open
dovahkiin98 opened this issue Feb 23, 2022 · 1 comment
Open

Reset thumb position #55

dovahkiin98 opened this issue Feb 23, 2022 · 1 comment

Comments

@dovahkiin98
Copy link

I have a ListView and a DraggableScrollbar with it.

The page has Search. So this scenario happens.

The user scrolls to the middle of the page, and searches for an item. The list is filtered, but the thumb is still at the middle. Even if the user resets the list, the thumb is still at the middle.

I tried controller.jumpTo but that didn't change the thumb position.

Is there a way to control the thumb? Change its position or at least reset it along with the ListView?

@dovahkiin98
Copy link
Author

As it seems, the Thumb is changed depending on ScrollNotification, so it's not using the provided controller at all. Shouldn't it be using the ScrollController to listen to scroll changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant