Skip to content

Commit 30cefbf

Browse files
committed
Fix currentPosition being invalid
1 parent 0a78634 commit 30cefbf

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Sources/Pageboy/PageboyViewController+ScrollDetection.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ extension PageboyViewController: UIScrollViewDelegate {
117117
positionPoint = CGPoint(x: scrollView.contentOffset.x, y: pagePosition)
118118
}
119119

120-
// ignore duplicate updates
121-
guard currentPosition != positionPoint else {
122-
return
123-
}
124120
currentPosition = positionPoint
125121
delegate?.pageboyViewController(self,
126122
didScrollTo: positionPoint,

0 commit comments

Comments
 (0)