]> _ Git - fluidbook-html5.git/commitdiff
wait #5271 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 May 2022 17:24:27 +0000 (19:24 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 May 2022 17:24:27 +0000 (19:24 +0200)
js/libs/fluidbook/fluidbook.zoom.js

index e56bce201386e847fa91e8825ca65638090150a1..eb289ad0db8654ac26189cfa8b68c2946178b970 100644 (file)
@@ -345,12 +345,13 @@ FluidbookZoom.prototype = {
                     this.fluidbook.help.hide(); // Hide the help view if it's showing
                 }
                 $("#shadow").addClass('hidden');
-                if (!$('header').hasClass('hidden')) {
-                    $(hiddenElements).addClass('hidden');
-                    this.hideInterfaceTimeout = setTimeout(function () {
-                        $(hiddenElements).hide();
-                    }, 500);
-                }
+
+                $(hiddenElements).addClass('hidden');
+                clearTimeout(this.hideInterfaceTimeout);
+                this.hideInterfaceTimeout = setTimeout(function () {
+                    $(hiddenElements).hide();
+                }, 500);
+
             } else {
                 clearTimeout(this.hideInterfaceTimeout);
                 $(hiddenElements).show().removeClass('hidden');