From: Vincent Vanwaelscappel Date: Tue, 15 Apr 2025 15:19:46 +0000 (+0200) Subject: wait #7459 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0294306b18da38bef2ce36880c1bd3b38833d2d5;p=fluidbook-html5.git wait #7459 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.loader.js b/js/libs/fluidbook/fluidbook.loader.js index 3fe88515..642d2280 100644 --- a/js/libs/fluidbook/fluidbook.loader.js +++ b/js/libs/fluidbook/fluidbook.loader.js @@ -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;