Skip to content

Commit

Permalink
Only start stream on scroll if not already started
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 6, 2024
1 parent 2ca08fb commit 80b000c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/skins/classic/views/js/montage.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,8 @@ function on_scroll() {

const isOut = isOutOfViewport(monitor.getElement());
if (!isOut.all) {
monitor.start();
} else if ( monitor.started ) {
if (!monitor.started) monitor.start();
} else if (monitor.started) {
monitor.stop();
}
} // end foreach monitor
Expand Down

0 comments on commit 80b000c

Please sign in to comment.