mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
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…
x
Reference in New Issue
Block a user