You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The isOutOfBounds function in inview.js assumes that a child will be out-of-bounds in a scrolled container. It is possible to position an element outside of the visible bounds of a parent using many other methods. Checking for container scrolling before checking child offsets is poor logic.
Example:
When a 3 item narrative is moved to the last item, the middle item is currently considered onscreen. $('.narrative__slider-image-container[data-index=1]').onscreen().onscreen
The text was updated successfully, but these errors were encountered:
The
isOutOfBounds
function ininview.js
assumes that a child will be out-of-bounds in a scrolled container. It is possible to position an element outside of the visible bounds of a parent using many other methods. Checking for container scrolling before checking child offsets is poor logic.adapt_framework/src/core/libraries/inview.js
Lines 543 to 573 in 833b4ef
Example:
When a 3 item narrative is moved to the last item, the middle item is currently considered onscreen.
$('.narrative__slider-image-container[data-index=1]').onscreen().onscreen
The text was updated successfully, but these errors were encountered: