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

Can not scroll to last item when panel is in middle of screen (snapping points) #180

Open
milule opened this issue Jun 26, 2020 · 1 comment

Comments

@milule
Copy link

milule commented Jun 26, 2020

I try to implement flat list scroll vertical in sliding panel. And if the panel is in top position the list can be scroll full all items but when the panel is in snapping points position, i can not scroll to last items. Can you help me find the solution of this isue ? Thanks

@efratyo
Copy link

efratyo commented Oct 28, 2020

I had the same problem. It was fixed when I set the panel's hight the same as draggableRange's top value.
In my case it's:

const draggableRange = {
    top: height - 200,
    bottom: 85,
}
<SlidingUpPanel
      draggableRange={draggableRange}
      height={draggableRange.top}
     ...
 >

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

2 participants