We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e622651 commit ee5a558Copy full SHA for ee5a558
src/TimeGrid.js
@@ -24,6 +24,7 @@ export default class TimeGrid extends Component {
24
25
this.scrollRef = React.createRef()
26
this.contentRef = React.createRef()
27
+ this._scrollRatio = null
28
}
29
30
componentWillMount() {
@@ -267,7 +268,7 @@ export default class TimeGrid extends Component {
267
268
269
270
applyScroll() {
- if (this._scrollRatio) {
271
+ if (this._scrollRatio != null) {
272
const content = this.contentRef.current
273
content.scrollTop = content.scrollHeight * this._scrollRatio
274
// Only do this once
0 commit comments