diff --git a/src/TimeGrid.js b/src/TimeGrid.js index b4220106b..b250b83b5 100644 --- a/src/TimeGrid.js +++ b/src/TimeGrid.js @@ -315,7 +315,7 @@ export default class TimeGrid extends Component { const { min, max, scrollToTime, localizer } = props const diffMillis = scrollToTime - localizer.startOf(scrollToTime, 'day') - const totalMillis = localizer.diff(max, min) + const totalMillis = localizer.diff(min, max, 'milliseconds') this._scrollRatio = diffMillis / totalMillis }