From 0c35c3e70e2de706c10a9a49b904b2cf83215623 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 29 Jul 2016 18:01:39 +0200 Subject: [PATCH] Hiding floating buttons when image viewer is active --- wcfsetup/install/files/js/WCF.ImageViewer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index b9fe262807..aa3ebb71ee 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -365,6 +365,8 @@ $.widget('ui.wcfImageViewer', { this._bindListener(); + document.documentElement.classList.add('pageOverlayActive'); + return true; }, @@ -392,6 +394,8 @@ $.widget('ui.wcfImageViewer', { WCF.System.DisableScrolling.enable(); WCF.System.DisableZoom.enable(); + document.documentElement.classList.remove('pageOverlayActive'); + return true; }, -- 2.20.1