Fix scrollTo() method to pass integer as opposed to float

Reviewed By: @​nspaun

Differential Revision: D2480775
This commit is contained in:
Olivier Notteghem 2015-09-25 12:57:49 -07:00 committed by facebook-github-bot-7
parent dcae4bada0
commit 3f213e37d3
1 changed files with 2 additions and 2 deletions

View File

@ -355,13 +355,13 @@ var ScrollResponderMixin = {
RCTUIManager.dispatchViewManagerCommand(
React.findNodeHandle(this),
RCTUIManager.RCTScrollView.Commands.scrollTo,
[offsetX, offsetY],
[Math.round(offsetX), Math.round(offsetY)],
);
} else {
RCTUIManager.scrollTo(
React.findNodeHandle(this),
offsetX,
offsetY
offsetY,
);
}
},