onDrag, onDragBegin, onDragEnd callbacks to know when drawer is being dragged/pulled
Feature Request
(Going from #351 by @midasCE and adding some details) We could have a callback for when the user starts/continues/finishes dragging the handler? (Example: onDrag, onDragBegin, onDragEnd which return start/end index)
Why it is needed
Currently, bottomsheet has only two position-based callbacks - onChange and onAnimate - which are only triggered once the user releases their finger. If we could detect when a user is pressing and dragging the drawer (just like onScroll, onScrollBegin, onScrollEnd in scrollables), we'd be able to more closely replicate advanced bottom sheet behavior like other components reacting/animating to the drawer dragged height (note the Google logo and search bar in this video).
Possible implementation
Updates would live alongside onAnimate and onClose in:
Code sample
const onDrag = (fromIndex: number, (maybe other params to determine position) => {
......
}
...
onDragHandler={onDrag}
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Not stale
Very interested in this feature request 👍
up
interested as well
please add this feature
this feature would be very useful
please add this feature.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
is there any progress on maybe adding this?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Not stale
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Would love to see this feature. Mainly for a way to may the pull to refresh work in the lowest position
Would love to see this feature. Mainly for a way to may the pull to refresh work in the lowest position
It would be amazing if you could observe the onDrag values so you can animate some other outside components when you are dragging.
Not stale, need this
Any reason this is closed?
It would be a great addition.
Also need this