mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -264,13 +264,13 @@ public final class GradientBackgroundNode: ASDisplayNode {
|
||||
|
||||
var steps: [[CGPoint]] = []
|
||||
if backwards {
|
||||
let phaseCount = extendAnimation ? 4 : 1
|
||||
let phaseCount = extendAnimation ? 6 : 1
|
||||
self.phase = (self.phase + phaseCount) % 8
|
||||
self.validPhase = self.phase
|
||||
|
||||
var stepPhase = self.phase - phaseCount
|
||||
if stepPhase < 0 {
|
||||
stepPhase = 7
|
||||
stepPhase = 8 + stepPhase
|
||||
}
|
||||
for _ in 0 ... phaseCount {
|
||||
steps.append(gatherPositions(shiftArray(array: GradientBackgroundNode.basePositions, offset: stepPhase)))
|
||||
|
||||
Reference in New Issue
Block a user