From 44f413583ce8c0dfa35044c1a357012aefc61220 Mon Sep 17 00:00:00 2001 From: acognet Date: Thu, 29 Jul 2021 11:38:20 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04124=20-=20Unable=20to=20scroll=20down?= =?UTF-8?q?=20on=20some=20object?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/components/panel.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/components/panel.js b/js/components/panel.js index eb85a4223..e134d0d1f 100644 --- a/js/components/panel.js +++ b/js/components/panel.js @@ -147,9 +147,12 @@ $(function () { } }, _onHeaderStopsBeingSticky: function () { - this.element.find(this.js_selectors.block.panel_header).removeClass(this.css_classes.is_sticking); - if (this._hasTabContainer()) { - this._updateTabsListPosition(false /* Need to wait for the header transition to end */); + //test to prevent the screen from flashing (cf bug 4124) + if ((this.element.position().top+this.element.find(this.js_selectors.block.panel_header_sticky_sentinel_top).outerHeight()) < (this.options.viewport_elem.scrollHeight-this.options.viewport_elem.clientHeight)) { + this.element.find(this.js_selectors.block.panel_header).removeClass(this.css_classes.is_sticking); + if (this._hasTabContainer()) { + this._updateTabsListPosition(false /* Need to wait for the header transition to end */); + } } }, /**