From 45c0c65b6dda1ba63d6b4e0df9d05f1223af55cb Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 29 Jul 2013 22:24:54 +0200 Subject: [PATCH] Closes dropdowns when scrolling --- wcfsetup/install/files/js/WCF.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0742818ef8..2fa998a668 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -736,6 +736,8 @@ WCF.Dropdown = { WCF.CloseOverlayHandler.addCallback('WCF.Dropdown', $.proxy(this._closeAll, this)); WCF.DOMNodeInsertedHandler.addCallback('WCF.Dropdown', $.proxy(this.init, this)); } + + $(document).on('scroll', $.proxy(this._toggle, this)); }, /** -- 2.20.1