BottomSheet icon indicating copy to clipboard operation
BottomSheet copied to clipboard

Allow sheet to be dragged above maxHeight, then snap back to maxHeight on drop

Open cacfd3a opened this issue 4 years ago • 3 comments

I think the component would feel a little more playful if we could drag the expanded bottom sheet to above its maxHeight, and on releasing the finger would use the spring animation to move back.

What do you think?

Kind of like this, except that it doesn't snap to the 'full screen' height:

cacfd3a avatar Aug 02 '21 09:08 cacfd3a

100% agree! 👍

danielsaidi avatar Aug 02 '21 10:08 danielsaidi

I think this would be a pretty easy fix. I'll look at it when I have time.

danielsaidi avatar Jan 04 '22 09:01 danielsaidi

@digitalheir I am looking at this now and it's not an easy fix as I thought that is would be.

The sheet has a max height depending on it's configuration, and dragging the sheet beyond the draggable limit doesn't resize the sheet but rather just pans it so that the bottom edge shows.

I'll have to investigate if I can expand the height once the drag offset it taller than the max offset, but it's a pretty tricky fix.

danielsaidi avatar Jan 05 '22 22:01 danielsaidi

Closing this since the library has been deprecated.

danielsaidi avatar Oct 21 '22 07:10 danielsaidi