N°3900 - Breadcrumbs: Better fix than 7ae4fe06e

This commit is contained in:
Molkobain
2021-09-23 23:22:30 +02:00
parent 6e45b74665
commit d76c9cee6f
2 changed files with 2 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ $(function()
me._updatePreviousItemsList();
}, {
root: $(this.js_selectors.breadcrumbs)[0],
threshold: [1] // Must be completely visible
threshold: [0.9] // N°3900 Should be completely visible, but lowering the threshold prevents a bug in the JS Observer API when the window is zoomed in/out, in which case all items respond as being hidden even when they are not.
});
this.element.find(this.js_selectors.item).each(function(){
me.items_observer.observe(this);