Selaa lähdekoodia

Use fadeTo instead of fadeIn/fadeOut to avoid having display: none on large video which causes issues when Temasys plugin is used.

j8
paweldomas 10 vuotta sitten
vanhempi
commit
0fe4999beb
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      modules/UI/videolayout/LargeVideo.js

+ 2
- 2
modules/UI/videolayout/LargeVideo.js Näytä tiedosto

@@ -267,7 +267,7 @@ function changeVideo(isVisible) {
267 267
     if (isVisible) {
268 268
         LargeVideo.VideoLayout.largeVideoUpdated(currentSmallVideo);
269 269
 
270
-        $('#largeVideoWrapper').fadeIn(300);
270
+        $('#largeVideoWrapper').fadeTo(300, 1);
271 271
     }
272 272
 }
273 273
 
@@ -402,7 +402,7 @@ var LargeVideo = {
402 402
             // If for any reason large video was hidden before calling fadeOut
403 403
             // changeVideo will never be called, so we call show() in chain just
404 404
             // to be sure
405
-            $('#largeVideoWrapper').show().fadeOut(300,
405
+            $('#largeVideoWrapper').show().fadeTo(300, 0,
406 406
                 changeVideo.bind($('#largeVideo'), this.isLargeVideoVisible()));
407 407
         } else {
408 408
             if (currentSmallVideo) {

Loading…
Peruuta
Tallenna