Restore original stiffness and damping and modify mass instead
This commit is contained in:
committed by
Oleksii Bulenok
parent
5f49821886
commit
e10bb60ae7
@@ -605,8 +605,9 @@ function LightboxImage({
|
|||||||
dismissSwipeTranslateY.set(() => {
|
dismissSwipeTranslateY.set(() => {
|
||||||
'worklet'
|
'worklet'
|
||||||
return withSpring(0, {
|
return withSpring(0, {
|
||||||
stiffness: 2800,
|
stiffness: 700,
|
||||||
damping: 200,
|
damping: 50,
|
||||||
|
mass: 1,
|
||||||
reduceMotion: ReduceMotion.Never,
|
reduceMotion: ReduceMotion.Never,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user