Skip to content

Commit 406da34

Browse files
committed
Enable fast deceleration for filters on the Discover tab
1 parent 6e32673 commit 406da34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WordPress/Classes/ViewRelated/Reader/Headers/ReaderDiscoverHeaderView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)