]> _ Git - fluidbook-html5.git/commitdiff
wait #5425 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 31 Aug 2022 13:12:42 +0000 (15:12 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 31 Aug 2022 13:12:42 +0000 (15:12 +0200)
js/libs/fluidbook/fluidbook.support.js
js/libs/fluidbook/slideshow/fluidbook.slideshow.dummy.js

index 496e98811064e69fa2745061686148c0d7514096..24c93b55e2a1de080d9f01a59d6478748cfb943d 100644 (file)
@@ -138,8 +138,10 @@ FluidbookSupport.prototype = {
             if ("onorientationchange" in window) {
                 window.addEventListener('orientationchange', function () {
                     resize();
+                    $this.checkOrientation();
                     setTimeout(function () {
                         resize();
+                        $this.checkOrientation();
                     }, 750);
                 }, false);
             } else {
index 77fc807d3251aab131b2ca802ac3933eb862080c..f539acf8c0a3969d89a0ee0ac9985dc06ded021a 100644 (file)
@@ -10,6 +10,7 @@ FluidbookDummySlideshow.prototype = {
     initEvents: function () {
         var $this = this;
         $(this.fluidbook).on('fluidbook.orientationchange', function () {
+            $('.fb-slideshow-wrapper.dummy.fb-slideshow-inline .fb-slideshow').css('visibility', 'hidden');
             setTimeout(function () {
                 if ($this.fluidbook.support.getOrientation() === 90) {
                     $('.fb-slideshow-wrapper.dummy.fb-slideshow-inline .fb-slideshow').each(function () {
@@ -18,6 +19,7 @@ FluidbookDummySlideshow.prototype = {
                         } else {
                             $this.initSlideshow($(this));
                         }
+                        $(this).css('visibility', 'visible');
                     });
                 }
             }, 2000);