We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d36020d commit 19049d4Copy full SHA for 19049d4
1 file changed
DMScrollBar/DMScrollBar.swift
@@ -375,6 +375,7 @@ public class DMScrollBar: UIView {
375
animations: { [weak self] _, time in
376
guard let self else { return }
377
let newY = self.scrollOffsetFromScrollIndicatorOffset(parameters.value(at: time).y)
378
+ if abs(scrollView.contentOffset.y - newY) < parameters.threshold { return }
379
scrollView.setContentOffset(CGPoint(x: 0, y: newY), animated: false)
380
}, completion: { [weak self] finished in
381
0 commit comments