File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -944,7 +944,7 @@ - (void)uiManagerWillPerformMounting:(RCTUIManager *)manager
944944 CGPointMake (self->_scrollView .contentOffset .x + deltaX, self->_scrollView .contentOffset .y );
945945 if (autoscrollThreshold != nil ) {
946946 // If the offset WAS within the threshold of the start, animate to the start.
947- if (x - deltaX <= [autoscrollThreshold integerValue ]) {
947+ if (x <= [autoscrollThreshold integerValue ]) {
948948 [self scrollToOffset: CGPointMake (-leftInset, self ->_scrollView.contentOffset.y) animated: YES ];
949949 }
950950 }
@@ -960,7 +960,7 @@ - (void)uiManagerWillPerformMounting:(RCTUIManager *)manager
960960 CGPointMake (self->_scrollView .contentOffset .x , self->_scrollView .contentOffset .y + deltaY);
961961 if (autoscrollThreshold != nil ) {
962962 // If the offset WAS within the threshold of the start, animate to the start.
963- if (y - deltaY <= [autoscrollThreshold integerValue ]) {
963+ if (y <= [autoscrollThreshold integerValue ]) {
964964 [self scrollToOffset: CGPointMake (self ->_scrollView.contentOffset.x, -bottomInset) animated: YES ];
965965 }
966966 }
You can’t perform that action at this time.
0 commit comments