Skip to content

Commit

Permalink
fix: autoplay on line plots
Browse files Browse the repository at this point in the history
  • Loading branch information
ellvix committed Sep 17, 2024
1 parent 17a5909 commit a52dd60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,6 @@ class Control {
}
},
]);

} else if (
[].concat(singleMaidr.type).includes('point') ||
[].concat(singleMaidr.type).includes('smooth')
Expand Down Expand Up @@ -1827,7 +1826,6 @@ class Control {
},
]);
}

} else if (
[].concat(singleMaidr.type).includes('stacked_bar') ||
[].concat(singleMaidr.type).includes('stacked_normalized_bar') ||
Expand Down Expand Up @@ -2042,7 +2040,7 @@ class Control {
},
]);
}
} else if (singleMaidr.type == 'line') {
} else if ([].concat(singleMaidr.type).includes('line')) {
window.position = new Position(-1, -1);
window.plot = new LinePlot();

Expand Down Expand Up @@ -2840,7 +2838,7 @@ class Control {
}
}
}, constants.autoPlayRate);
} else if ([].concat(singleMaidr.type).includes('hist')) {
} else if ([].concat(singleMaidr.type).includes('line')) {
lastPlayed = dir;
let step = 1; // default right and reverse-left
if (dir == 'left' || dir == 'reverse-right') {
Expand Down

0 comments on commit a52dd60

Please sign in to comment.