Skip to content

Commit

Permalink
fix(ios): Fix progress bar movement on RTL & Fabric (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactor authored Nov 28, 2024
1 parent 7e07e38 commit 4675e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Fabric/RNCPagerViewComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
NSInteger position = self.currentIndex;

BOOL isHorizontalRtl = [self isHorizontalRtlLayout];
BOOL isAnimatingBackwards = offset<0;
BOOL isAnimatingBackwards = isHorizontalRtl ? offset > 0.05f : offset < 0;

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

0 comments on commit 4675e83

Please sign in to comment.