diff --git a/docs/timeline/index.html b/docs/timeline/index.html index 7cc75507..ecc0d74e 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -680,7 +680,7 @@ function (option, path) { Boolean false This option allows you to scroll horizontally to move backwards and forwards in the time range. - Only applicable when option zoomCtrl is defined or zoomable is false. + Only applicable when option zoomCtrl is defined or zoomable is false. Notice that defining this option as true will override verticalScroll scroll event but not eliminate the vertical scrollbar. @@ -1028,7 +1028,7 @@ function (option, path) { verticalScroll Boolean false - Show a vertical scroll on the side of the group list. + Show a vertical scroll on the side of the group list and link it to the scroll event when zoom is not triggered. Notice that defining this option as true will NOT override horizontalScroll. The scroll event will be vertically ignored, but a vertical scrollbar will be visible diff --git a/lib/timeline/Timeline.js b/lib/timeline/Timeline.js index a397498e..439537e0 100644 --- a/lib/timeline/Timeline.js +++ b/lib/timeline/Timeline.js @@ -60,7 +60,7 @@ function Timeline (container, items, groups, options) { minHeight: null }; this.options = util.deepExtend({}, this.defaultOptions); - this.options.rtl = options.rtl; + if (options) { this.options.rtl = options.rtl; } // Create the DOM, props, and emitter this._create(container);