diff --git a/HISTORY.md b/HISTORY.md index 99d814da..86a09842 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -15,6 +15,7 @@ http://visjs.org - Fixed #1491: Problem using ctrl+drag in combination with using a `DataView`, and an issue with ctrl+drag when using `snap: null`. - Fixed #1486: Item range sometimes wrongly calculated on IE in case of old dates. +- Fixed #1523: end of data range wrongly determined. ### Graph2d diff --git a/lib/timeline/Timeline.js b/lib/timeline/Timeline.js index 89075bc6..50de9f48 100644 --- a/lib/timeline/Timeline.js +++ b/lib/timeline/Timeline.js @@ -455,7 +455,7 @@ Timeline.prototype.getDataRange = function() { min = start; } if (max === null || end > max) { - max = start; + max = end; } }); }