mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 16:11:13 +00:00
ItemListRevealOptionsNode: additional animations fix
This commit is contained in:
parent
031ff5fa80
commit
06ad876b5f
@ -405,11 +405,11 @@ final class ItemListRevealOptionsNode: ASDisplayNode {
|
|||||||
extendedWidth = size.width * max(1.0, abs(revealFactor))
|
extendedWidth = size.width * max(1.0, abs(revealFactor))
|
||||||
} else if self.isLeft {
|
} else if self.isLeft {
|
||||||
let offset = basicNodeWidth * CGFloat(self.optionNodes.count - 1 - i)
|
let offset = basicNodeWidth * CGFloat(self.optionNodes.count - 1 - i)
|
||||||
extendedWidth = size.width - offset
|
extendedWidth = (size.width - offset) * max(1.0, abs(revealFactor))
|
||||||
nodeLeftOffset = startingOffset - extendedWidth - floorToScreenPixels(offset * abs(revealFactor))
|
nodeLeftOffset = startingOffset - extendedWidth - floorToScreenPixels(offset * abs(revealFactor))
|
||||||
} else {
|
} else {
|
||||||
let offset = basicNodeWidth * CGFloat(i)
|
let offset = basicNodeWidth * CGFloat(i)
|
||||||
extendedWidth = size.width - offset
|
extendedWidth = (size.width - offset) * max(1.0, abs(revealFactor))
|
||||||
nodeLeftOffset = startingOffset + floorToScreenPixels(offset * abs(revealFactor))
|
nodeLeftOffset = startingOffset + floorToScreenPixels(offset * abs(revealFactor))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user