Fix scrollTo() method to pass integer as opposed to float
Reviewed By: @nspaun Differential Revision: D2480775
This commit is contained in:
parent
dcae4bada0
commit
3f213e37d3
|
@ -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,
|
||||
);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue