mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Dust effect improvements
This commit is contained in:
@@ -2436,8 +2436,10 @@ open class ListView: ASDisplayNode, UIScrollViewAccessibilityDelegate, UIGesture
|
||||
|
||||
if node.index == nil {
|
||||
var duration = insertionAnimationDuration
|
||||
var hasCustomRemoveAnimation = false
|
||||
if let value = self.customItemDeleteAnimationDuration(itemNode: node) {
|
||||
duration = value
|
||||
hasCustomRemoveAnimation = true
|
||||
}
|
||||
|
||||
if node.animationForKey("height") == nil || !(node is ListViewTempItemNode) {
|
||||
@@ -2450,7 +2452,9 @@ open class ListView: ASDisplayNode, UIScrollViewAccessibilityDelegate, UIGesture
|
||||
}
|
||||
})
|
||||
}
|
||||
node.animateRemoved(timestamp, duration: duration * UIView.animationDurationFactor())
|
||||
if !hasCustomRemoveAnimation {
|
||||
node.animateRemoved(timestamp, duration: duration * UIView.animationDurationFactor())
|
||||
}
|
||||
} else if animated {
|
||||
if takenAnimation {
|
||||
if let previousFrame = previousFrame {
|
||||
|
||||
Reference in New Issue
Block a user