Skip to content

Commit

Permalink
bugfix;
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Mar 28, 2019
1 parent e11fb6a commit b13bdec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-scrollbars-custom",
"description": "The best React custom scrollbars component",
"version": "4.0.0-alpha.9",
"version": "4.0.0-alpha.10",
"repository": {
"type": "git",
"url": "https://github.com/xobotyi/react-scrollbars-custom.git"
Expand Down
5 changes: 4 additions & 1 deletion src/Scrollbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,10 @@ export default class Scrollbar extends React.Component<
scrollValues.clientWidth === 0 &&
scrollValues.scrollWidth &&
scrollValues.clientHeight === 0 &&
scrollValues.scrollHeight
scrollValues.scrollHeight &&
(this.props.translateContentSizesToHolder ||
this.props.translateContentSizeYToHolder ||
this.props.translateContentSizeXToHolder)
) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Scrollbar.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ describe("Scrollbar", () => {
).toBeTruthy();

done();
}, 20);
}, 60);
}
);
});
Expand Down

0 comments on commit b13bdec

Please sign in to comment.