mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 05:51:42 +00:00
Fix handle positioning
This commit is contained in:
parent
574d9feefe
commit
e7c626004c
@ -826,13 +826,13 @@ public final class SparseItemGridScrollingArea: ASDisplayNode {
|
|||||||
let indicatorTopPosition = topIndicatorInset
|
let indicatorTopPosition = topIndicatorInset
|
||||||
let indicatorBottomPosition = containerSize.height - bottomIndicatorInset - scrollIndicatorHeight
|
let indicatorBottomPosition = containerSize.height - bottomIndicatorInset - scrollIndicatorHeight
|
||||||
|
|
||||||
let dateIndicatorTopPosition = topIndicatorInset + 4.0
|
let dateIndicatorTopPosition = topIndicatorInset + floor(scrollIndicatorHeight - indicatorSize.height) / 2.0
|
||||||
let dateIndicatorBottomPosition = containerSize.height - bottomIndicatorInset - 4.0 - indicatorSize.height
|
let dateIndicatorBottomPosition = containerSize.height - bottomIndicatorInset - floor(scrollIndicatorHeight - indicatorSize.height) / 2.0 - indicatorSize.height
|
||||||
|
|
||||||
self.indicatorPosition = indicatorTopPosition * (1.0 - indicatorPositionFraction) + indicatorBottomPosition * indicatorPositionFraction
|
self.indicatorPosition = indicatorTopPosition * (1.0 - indicatorPositionFraction) + indicatorBottomPosition * indicatorPositionFraction
|
||||||
self.scrollIndicatorHeight = scrollIndicatorHeight
|
self.scrollIndicatorHeight = scrollIndicatorHeight
|
||||||
|
|
||||||
let dateIndicatorPosition = dateIndicatorTopPosition * (1.0 - indicatorPositionFraction) + dateIndicatorBottomPosition * indicatorPositionFraction
|
let dateIndicatorPosition = dateIndicatorTopPosition * (1.0 - indicatorPositionFraction) + dateIndicatorBottomPosition * indicatorPositionFraction - UIScreenPixel
|
||||||
|
|
||||||
self.projectionData = ProjectionData(
|
self.projectionData = ProjectionData(
|
||||||
minY: dateIndicatorTopPosition,
|
minY: dateIndicatorTopPosition,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user