[Timeline] Add tests for timeline zoom changes

This commit is contained in:
Victor Woeltjen
2016-05-24 12:33:19 -07:00
parent 757da1dff4
commit eb5566f041
2 changed files with 59 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ define(
var duration = timespan.getDuration();
zoomIndex = 0;
while (toMillis(bounds.width) < duration &&
zoomIndex < zoomLevels.length) {
zoomIndex < zoomLevels.length - 1) {
zoomIndex += 1;
}
bounds.x = toPixels(timespan.getStart());