Skip to content

Commit

Permalink
Don't stop engine just for autoscroll turning off
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Jun 27, 2023
1 parent 2119bca commit 44e219b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,16 @@ let hub_main_props = {
}

if (!opts.keep_autoplay_settings) {
if (this.__autoanalysis || this.__backanalysis || this.__autoplay || this.__autoscroll || this.__play_colour) {
if (this.__autoanalysis || this.__backanalysis || this.__autoplay || this.__play_colour) {
this.set_autoanalysis(false);
this.set_backanalysis(false);
this.set_autoplay(false);
this.set_autoscroll(false);
this.set_play_colour(null);
want_to_go = false; // i.e. we halt only if we are turning off one of these things.
}
if (this.__autoscroll) {
this.set_autoscroll(false); // (Don't set want_to_go = false just for this.)
}
}

if (want_to_go) {
Expand Down

0 comments on commit 44e219b

Please sign in to comment.