From 0294306b18da38bef2ce36880c1bd3b38833d2d5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 15 Apr 2025 17:19:46 +0200 Subject: [PATCH] wait #7459 @0.5 --- js/libs/fluidbook/fluidbook.loader.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5