-
Notifications
You must be signed in to change notification settings - Fork 20
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
[Feature request] Add support for custom scroller #67
Comments
I'll look into this tomorrow. Any chance you can a screen recording of a sample project that has the problem you're running into? Not sure if I understand exactly what's happening. |
nested.scrolling.issue.webmthis is basically the issue I got. Using this toolbar https://github.com/OyaCanli/tutorial_samples/blob/master/AppBarLayoutCompose/app/src/main/java/com/canlioya/appbarlayoutcompose/FlexibleTopBar.kt as sticky toolbar, integrated like this:
Edit: To be clear, I want the possibility, that we can just use an own implementation for scroller, that way I could use the scroller to also scroll down the header by passing the topAppBarScrollBehavior. |
We would like to overwrite the logic for the scroller within our implementation. We got a sticky header with a nested scrolling, which should scroll up, when we drag and element down. However, when the library calls
scrollableState.animateScrollBy( diff, tween(durationMillis = duration.toInt(), easing = LinearEasing) )
the nested scrolling connection isn't working.
Due to this it would be nice, if the required Scroller could be an interface, which could be used for an custom implementation. This way we could pass the nested scroll connection or whatever we want to be scrolling to the rememberScroller and extend the logic you got.
Otherwise, maybe you have also an idea, why scrollableState.animateScrollBy doesn't work with the nested scrolling.
lazyListState.animateScrollToItem(index)
works fine.Thanks in advance.
The text was updated successfully, but these errors were encountered: