File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ PODS:
185
185
- React-cxxreact (= 0.63.4)
186
186
- React-jsi (= 0.63.4)
187
187
- React-jsinspector (0.63.4)
188
- - react-native-pager-view (5.1.7 ):
188
+ - react-native-pager-view (5.1.8 ):
189
189
- React-Core
190
190
- react-native-safe-area-context (3.2.0):
191
191
- React-Core
@@ -382,7 +382,7 @@ SPEC CHECKSUMS:
382
382
React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31
383
383
React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949
384
384
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
385
- react-native-pager-view: c60a26be051a4b88427f2475e173b5c112e98d17
385
+ react-native-pager-view: a0b86051cb34c1868601ba65a8133e3b7a2830b5
386
386
react-native-safe-area-context: f0906bf8bc9835ac9a9d3f97e8bde2a997d8da79
387
387
React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336
388
388
React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b
@@ -402,4 +402,4 @@ SPEC CHECKSUMS:
402
402
403
403
PODFILE CHECKSUM: ff595481d97548cf6367f753d945ef2a7fc1f818
404
404
405
- COCOAPODS: 1.10.0
405
+ COCOAPODS: 1.10.1
Original file line number Diff line number Diff line change @@ -382,19 +382,13 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
382
382
}
383
383
384
384
float absoluteOffset = fabs (offset);
385
- if (absoluteOffset > 1 ) {
386
- absoluteOffset = 1.0 ;
387
- }
388
385
389
- NSString *scrollDirection = [self determineScrollDirection: scrollView];
390
- NSString *oppositeDirection = self.isHorizontal ? @" left" : @" up" ;
391
386
NSInteger position = self.currentIndex ;
392
-
393
- if (absoluteOffset > 0 ) {
394
- position = [scrollDirection isEqual: oppositeDirection] ? self.currentIndex - 1 : self. currentIndex ;
395
- absoluteOffset = [scrollDirection isEqual: oppositeDirection] ? 1 - absoluteOffset : absoluteOffset;
387
+
388
+ if (offset< 0 && position> 0 ) {
389
+ position = self.currentIndex - 1 ;
390
+ absoluteOffset = 1 - absoluteOffset;
396
391
}
397
-
398
392
399
393
self.lastContentOffset = scrollView.contentOffset ;
400
394
[self .eventDispatcher sendEvent: [[RCTOnPageScrollEvent alloc ] initWithReactTag: self .reactTag position: @(position) offset: @(absoluteOffset)]];
You can’t perform that action at this time.
0 commit comments