Skip to content

Commit

Permalink
Update ScrollResponder.js to use new scrollTo API
Browse files Browse the repository at this point in the history
Summary:`scrollResponderInputMeasureAndScrollToKeyboard` is the only non-deprecated method in `ScrollResponder.js` that doesn't use the [new `scrollTo` API](6941c4e). The other method that uses the deprecated API (`scrollResponderScrollWithoutAnimationTo`) is also deprecated, so it has been left unaltered.
Closes #5990

Differential Revision: D2953916

Pulled By: nicklockwood

fb-gh-sync-id: d692c598e6b85d1050e58b87146d01b031653a49
shipit-source-id: d692c598e6b85d1050e58b87146d01b031653a49
  • Loading branch information
JackWink authored and facebook-github-bot-7 committed Feb 19, 2016
1 parent 19a1c4c commit 78a9125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Components/ScrollResponder.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ var ScrollResponderMixin = {
if (this.preventNegativeScrollOffset) {
scrollOffsetY = Math.max(0, scrollOffsetY);
}
this.scrollResponderScrollTo(0, scrollOffsetY);
this.scrollResponderScrollTo({x: 0, y: scrollOffsetY, animated: true});

this.additionalOffset = 0;
this.preventNegativeScrollOffset = false;
Expand Down

0 comments on commit 78a9125

Please sign in to comment.