File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ final class ReaderDiscoverHeaderView: ReaderBaseHeaderView, UITextViewDelegate {
2222 scrollView. addSubview ( channelsStackView)
2323 scrollView. showsHorizontalScrollIndicator = false
2424 scrollView. clipsToBounds = false
25+ scrollView. decelerationRate = . fast
26+
2527 channelsStackView. pinEdges ( )
2628 scrollView. heightAnchor. constraint ( equalTo: channelsStackView. heightAnchor) . isActive = true
2729
@@ -65,7 +67,7 @@ final class ReaderDiscoverHeaderView: ReaderBaseHeaderView, UITextViewDelegate {
6567
6668 private func updateScrollViewInsets( ) {
6769 scrollView. contentInset. left = contentView. frame. minX - ( isCompact ? 0 : 10 )
68- scrollView. contentInset. right = frame. maxX - contentView. frame. maxX
70+ scrollView. contentInset. right = frame. maxX - contentView. frame. maxX + 10
6971 scrollView. contentOffset = CGPoint ( x: - scrollView. contentInset. left, y: 0 )
7072 }
7173
You can’t perform that action at this time.
0 commit comments