There was an error while loading. Please reload this page.
1 parent 5317a5e commit 405029eCopy full SHA for 405029e
1 file changed
lib/timeline/Range.js
@@ -109,11 +109,16 @@ export default class Range extends Component {
109
];
110
util.selectiveExtend(fields, this.options, options);
111
112
- if (options.rollingMode && options.rollingMode.follow) {
113
- this.startRolling();
114
- }
115
- if (options.rollingMode && options.rollingMode.showButton && !this.rolling) {
116
- this.body.dom.rollingModeBtn.style.visibility = "visible";
+ if (options.rollingMode) {
+ if (options.rollingMode.follow) {
+ this.startRolling();
+ } else {
+ this.stopRolling();
117
+ }
118
+
119
+ if (options.rollingMode.showButton && !this.rolling) {
120
+ this.body.dom.rollingModeBtn.style.visibility = "visible";
121
122
}
123
if ('start' in options || 'end' in options) {
124
// apply a new range. both start and end are optional
0 commit comments