Skip to content

Commit

Permalink
[PAY-2478] Add overshoot clamping to drawer close (#7573)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Feb 13, 2024
1 parent ce72ac5 commit 36f8f09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mobile/src/components/drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export const Drawer: DrawerComponent = ({
value: position,
drawerHeight,
animationStyle,
overshootClamping: true,
finished: ({ finished }) => {
if (finished) {
onFinished?.()
Expand All @@ -381,7 +382,8 @@ export const Drawer: DrawerComponent = ({
animation: borderRadiusAnim.current,
value: BORDER_RADIUS,
drawerHeight,
animationStyle
animationStyle,
overshootClamping: true
})
}
if (shouldBackgroundDim) {
Expand Down

0 comments on commit 36f8f09

Please sign in to comment.