File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
web/skins/classic/views/js Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -537,16 +537,6 @@ function handleClick(evt) {
537
537
function startMonitors ( ) {
538
538
for ( let i = 0 , length = monitors . length ; i < length ; i ++ ) {
539
539
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
-
550
540
const isOut = isOutOfViewport ( monitor . getElement ( ) ) ;
551
541
if ( ! isOut . all ) {
552
542
monitor . start ( ) ;
@@ -830,6 +820,7 @@ function initPage() {
830
820
} // end initPage
831
821
832
822
function on_scroll ( ) {
823
+ if ( ! checkEndMonitorsPlaced ( ) ) return ;
833
824
for ( let i = 0 , length = monitors . length ; i < length ; i ++ ) {
834
825
const monitor = monitors [ i ] ;
835
826
You can’t perform that action at this time.
0 commit comments