fix: list animation
This commit is contained in:
1 parent
345e7cfc90
commit
5f0dac673d
3 files changed
+14
-12
No files matched your search
@@ -48,11 +48,11 @@ const DialogContent = React.forwardRef<
|
||||
animate={{ top: '20vh' }}
|
||||
exit={{ top: '100vh' }}
|
||||
drag='y'
|
||||
dragConstraints={{ top: 0, bottom: 300 }}
|
||||
dragConstraints={{ top: 0, bottom: 0 }}
|
||||
onDragEnd={(_, info) => info.offset.y > 100 && props.onClose?.()}
|
||||
dragListener={false}
|
||||
dragControls={controls}
|
||||
dragElastic={0.5}
|
||||
dragElastic={0.8}
|
||||
>
|
||||
<DialogPrimitive.Content
|
||||
ref={ref}
|
||||
|
||||
Reference in new issue
Block a user