Improve rounded button shimmer

This commit is contained in:
Ilya Laktyushin
2022-04-26 04:52:16 +04:00
parent 3d385c94bd
commit 4af2744424
5 changed files with 243 additions and 15 deletions

View File

@@ -1152,7 +1152,7 @@ public final class SparseItemGridScrollingArea: ASDisplayNode {
)
let scrollIndicatorHeightFraction = min(1.0, max(0.0, (containerSize.height - containerInsets.top - containerInsets.bottom) / contentHeight))
if scrollIndicatorHeightFraction >= 1.0 - .ulpOfOne {
if scrollIndicatorHeightFraction >= 0.55 - .ulpOfOne {
self.dateIndicator.isHidden = true
self.lineIndicator.isHidden = true
} else {