Skip to content

Conversation

@doanhtu07
Copy link

Motivation

When using BottomSheetScrollView, I ran into a strange issue.

During a long scroll, the pan gesture reads the same scroll distance. So when you try to scroll to the top, the bottom sheet mistakenly thinks you've already dragged it a long way. As a result, the sheet closes prematurely, which feels unintuitive.

Solution

Simply take into account scrollableContentOffsetY during calculating destinationPoint

Screenshots

Close too soon

close-too-soon.mp4

Solution demo

solution-demo.mp4

Sidenote

  • Change map to forEach since biome is complaining and failing the husky pipeline

@doanhtu07 doanhtu07 changed the title Fix/bottom sheet scroll jumpy fix: bottom sheet scroll jumpy Oct 20, 2025
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

Successfully merging this pull request may close these issues.

1 participant