Various improvements

This commit is contained in:
Ilya Laktyushin
2022-05-23 04:57:54 +04:00
parent 00d343a892
commit 585838b455
7 changed files with 131 additions and 39 deletions

View File

@@ -495,6 +495,7 @@ private final class ScrollComponent<ChildEnvironment: Equatable>: Component {
}
self.delegate = self
self.showsVerticalScrollIndicator = false
self.showsHorizontalScrollIndicator = false
self.canCancelContentTouches = true
self.addSubview(self.contentView)
@@ -1506,7 +1507,9 @@ private final class PremiumIntroScreenComponent: CombinedComponent {
contentOffsetUpdated: { [weak state] topContentOffset, bottomContentOffset in
state?.topContentOffset = topContentOffset
state?.bottomContentOffset = bottomContentOffset
state?.updated(transition: .immediate)
Queue.mainQueue().justDispatch {
state?.updated(transition: .immediate)
}
},
contentOffsetWillCommit: { targetContentOffset in
if targetContentOffset.pointee.y < 100.0 {