mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix story item alpha
This commit is contained in:
parent
bc7687b0ae
commit
ff0c84ea35
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user