N°4631 - Update fullscreen class

This commit is contained in:
Stephen Abello
2024-04-02 10:13:28 +02:00
parent 5efb1a0872
commit 25f266ef66
3 changed files with 12 additions and 6 deletions

View File

@@ -32,6 +32,9 @@ $(function()
extra_tabs_list_toggler: '[data-role="ibo-tab-container--extra-tabs-list-toggler"]',
extra_tabs_list: '[data-role="ibo-tab-container--extra-tabs-list"]',
extra_tab_toggler: '[data-role="ibo-tab-container--extra-tab-toggler"]',
global: {
fullscreen_elements: '.ibo-is-fullscreen',
},
},
// the constructor
@@ -142,7 +145,7 @@ $(function()
if(window.IntersectionObserver) {
const oTabsListIntersectObs = new IntersectionObserver(function(aEntries, oTabsListIntersectObs){
// N°4631 - If a non-intersecting element is fullscreen, we do nothing
if ($('.ibo-is-fullscreen-non-intersecting').length > 0) {
if ($(me.js_selectors.global.fullscreen_elements).length > 0) {
return;
}
aEntries.forEach(oEntry => {