You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if the drawer is swiped quickly, it will always pass snap points and close / open fully. There are many use cases where this is undesirable (snap points have specific meanings or other state effects and should always be passed-through). This would be a very easy change. We could have an alwaysSnapToNextPoint optional prop or some such thing
// use-snap-points.ts:152if(!alwaysSnapToNextPoint&&velocity>2&&!hasDraggedUp){if(dismissible)closeDrawer();elsesnapToPoint(snapPointsOffset[0]);// snap to initial pointreturn;}if(!alwaysSnapToNextPoint&&velocity>2&&hasDraggedUp&&snapPointsOffset&&snapPoints){snapToPoint(snapPointsOffset[snapPoints.length-1]asnumber);return;}
The text was updated successfully, but these errors were encountered:
Currently, if the drawer is swiped quickly, it will always pass snap points and close / open fully. There are many use cases where this is undesirable (snap points have specific meanings or other state effects and should always be passed-through). This would be a very easy change. We could have an
alwaysSnapToNextPoint
optional prop or some such thingThe text was updated successfully, but these errors were encountered: