]> _ Git - fluidbook-html5.git/commitdiff
wait #7459 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 15 Apr 2025 15:19:46 +0000 (17:19 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 15 Apr 2025 15:19:46 +0000 (17:19 +0200)
js/libs/fluidbook/fluidbook.loader.js

index 3fe885153169c95262874f724dd1d44e533a3952..642d228018d82e4fe2f2854412782cb541760863 100644 (file)
@@ -619,6 +619,9 @@ FluidbookLoader.prototype = {
             if ($(this).is('[data-rollover-hide]')) {
                 return;
             }
+            if (($(this).is('[data-visibility-os="mobile"]') && Modernizr.desktop) || ($(this).is('[data-visibility-os="desktop"]') && Modernizr.mobile)) {
+                return;
+            }
             if ((enter && $(this).is('[data-animation-hide]')) || (!enter && $(this).is('[data-animation-hide-on-leave]'))) {
                 return;
             }
@@ -704,6 +707,9 @@ FluidbookLoader.prototype = {
                                 return;
                             }
 
+                            if (($(this).is('[data-visibility-os="mobile"]') && Modernizr.desktop) || ($(this).is('[data-visibility-os="desktop"]') && Modernizr.mobile)) {
+                                return;
+                            }
 
                             let texture;