Skip to content

Commit 9d8dff9

Browse files
committed
remove extra parameter from Math.round
1 parent cfd2cd0 commit 9d8dff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const ScrollableTabView = React.createClass({
236236
_handleLayout(e) {
237237
const { width, } = e.nativeEvent.layout;
238238

239-
if (Math.round(width, 2) !== Math.round(this.state.containerWidth, 2)) {
239+
if (Math.round(width) !== Math.round(this.state.containerWidth)) {
240240
this.setState({ containerWidth: width, });
241241
this.requestAnimationFrame(() => {
242242
this.goToPage(this.state.currentPage);

0 commit comments

Comments
 (0)