mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Adjust animation parameters
This commit is contained in:
parent
2534d80833
commit
1fab4e828f
@ -881,8 +881,9 @@ public final class StoryPeerListComponent: Component {
|
|||||||
let _ = bounceOffsetFraction
|
let _ = bounceOffsetFraction
|
||||||
|
|
||||||
let bounceFactor = expandBoundsFraction * (1.0 + realTimeOverscrollFraction * 6.0)
|
let bounceFactor = expandBoundsFraction * (1.0 + realTimeOverscrollFraction * 6.0)
|
||||||
itemPosition.x += bounceFactor * (adjustedRegularFrame.midX - collapsedItemPosition.x) * 0.05
|
let verticalBounceFactor = expandBoundsFraction * (1.0 + realTimeOverscrollFraction * 12.0)
|
||||||
itemPosition.y += bounceFactor * (adjustedRegularFrame.midY - collapsedItemPosition.y) * 0.01
|
itemPosition.x += bounceFactor * (adjustedRegularFrame.midX - collapsedItemPosition.x) * 0.04
|
||||||
|
itemPosition.y += verticalBounceFactor * (adjustedRegularFrame.midY - collapsedItemPosition.y) * 0.05
|
||||||
|
|
||||||
let itemSize = CGSize(width: adjustedRegularFrame.width * itemScale, height: adjustedRegularFrame.height)
|
let itemSize = CGSize(width: adjustedRegularFrame.width * itemScale, height: adjustedRegularFrame.height)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user