mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-21 03:29:54 +00:00
Fix story item alpha
This commit is contained in:
@@ -889,7 +889,7 @@ public final class StoryPeerListComponent: Component {
|
||||
rightItemFrame = calculateItem(i + 1).itemFrame
|
||||
}
|
||||
|
||||
itemAlpha = collapsedState.sideAlphaFraction * 1.0 + (1.0 - collapsedState.sideAlphaFraction) * (1.0 - collapsedState.activityFraction)
|
||||
itemAlpha = (collapsedState.sideAlphaFraction * 1.0 + (1.0 - collapsedState.sideAlphaFraction) * (1.0 - collapsedState.activityFraction)) * collapsedState.sideAlphaFraction
|
||||
} else {
|
||||
if itemLayout.itemCount == 1 {
|
||||
itemAlpha = min(1.0, (collapsedState.minFraction + collapsedState.maxFraction) * 4.0)
|
||||
|
||||
@@ -64,17 +64,15 @@ private func calculateMergingCircleShape(center: CGPoint, leftCenter: CGPoint?,
|
||||
|
||||
let segmentCount = max(totalCount, 1)
|
||||
|
||||
if segmentCount == 1 {
|
||||
if isSeen {
|
||||
if unseenCount == 0 {
|
||||
} else {
|
||||
return path
|
||||
}
|
||||
if isSeen {
|
||||
if unseenCount == 0 {
|
||||
} else {
|
||||
if unseenCount != 0 {
|
||||
} else {
|
||||
return path
|
||||
}
|
||||
return path
|
||||
}
|
||||
} else {
|
||||
if unseenCount != 0 {
|
||||
} else {
|
||||
return path
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user