Skip to content

Commit de6a754

Browse files
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2 parents 3f7c8f4 + 73d2a1e commit de6a754

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

web/skins/classic/views/js/montage.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -537,16 +537,6 @@ function handleClick(evt) {
537537
function startMonitors() {
538538
for (let i = 0, length = monitors.length; i < length; i++) {
539539
const monitor = monitors[i];
540-
// Why are we scaling here instead of in monitorstream?
541-
const obj = document.getElementById('liveStream'+monitor.id);
542-
if (obj.src) {
543-
const url = new URL(obj.src);
544-
let scale = parseInt(obj.clientWidth / monitor.width * 100);
545-
if (scale > 100) scale = 100;
546-
url.searchParams.set('scale', scale);
547-
obj.src = url;
548-
}
549-
550540
const isOut = isOutOfViewport(monitor.getElement());
551541
if (!isOut.all) {
552542
monitor.start();
@@ -830,6 +820,7 @@ function initPage() {
830820
} // end initPage
831821

832822
function on_scroll() {
823+
if (!checkEndMonitorsPlaced()) return;
833824
for (let i = 0, length = monitors.length; i < length; i++) {
834825
const monitor = monitors[i];
835826

0 commit comments

Comments
 (0)