Skip to content

Commit 4675e83

Browse files
authored
fix(ios): Fix progress bar movement on RTL & Fabric (#931)
1 parent 7e07e38 commit 4675e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ios/Fabric/RNCPagerViewComponentView.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
326326
NSInteger position = self.currentIndex;
327327

328328
BOOL isHorizontalRtl = [self isHorizontalRtlLayout];
329-
BOOL isAnimatingBackwards = offset<0;
329+
BOOL isAnimatingBackwards = isHorizontalRtl ? offset > 0.05f : offset < 0;
330330

331331
if (scrollView.isDragging) {
332332
_destinationIndex = isAnimatingBackwards ? _currentIndex - 1 : _currentIndex + 1;

0 commit comments

Comments
 (0)