Closed franmc01 closed 1 year ago
What I am looking for is that when I scroll down the sheet returns to the initial position and cannot be hidden
did u find a fix?
If you don't mind losing draggability for the Sheet.Content
then you can pass disableDrag
to it to disable all dragging gestures for the content part of the sheet. The header will still be draggable.
<Sheet>
<Sheet.Container>
<Sheet.Header />
<Sheet.Content disableDrag>
{/* ... */}
</Sheet.Content>
</Sheet.Container>
</Sheet>
Not sure if Framer Motion is able to handle both vertical scrollability and draggability for the content without occasionally mixing those two type of gesture events. If you think about it scrolling down is basically the same gesture as dragging down.
What I am looking for is that when I scroll down the sheet returns to the initial position and cannot be hidden