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
|
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 {
|
} else {
|
||||||
if itemLayout.itemCount == 1 {
|
if itemLayout.itemCount == 1 {
|
||||||
itemAlpha = min(1.0, (collapsedState.minFraction + collapsedState.maxFraction) * 4.0)
|
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)
|
let segmentCount = max(totalCount, 1)
|
||||||
|
|
||||||
if segmentCount == 1 {
|
if isSeen {
|
||||||
if isSeen {
|
if unseenCount == 0 {
|
||||||
if unseenCount == 0 {
|
|
||||||
} else {
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if unseenCount != 0 {
|
return path
|
||||||
} else {
|
}
|
||||||
return path
|
} else {
|
||||||
}
|
if unseenCount != 0 {
|
||||||
|
} else {
|
||||||
|
return path
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user