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
Virtual folder list scrolling should be able to work regardless of the container size. Use the 'All' item to dynamically calculate the item height at runtime, and then use the container size to calculate scroll size and position.
Virtual image scroller should be smarter about pre-loading new results before the bottom of the page is hit (i.e., during scrolling)
The text was updated successfully, but these errors were encountered:
// this is the target which is observed
var target = document.querySelector('div')
// configure the intersection observer instance
var intersectionObserverOptions = {
root: null, // default is the viewport
threshold: .5 // percentage of the taregt visible area which will trigger "onIntersection"
}
var observer = new IntersectionObserver(onIntersection, intersectionObserverOptions)
// called when target is fully visible
function onIntersection(entries, opts){
entries.forEach(entry => {
var visible = entry.intersectionRatio >= opts.thresholds[0]
console.clear();
console.log(entry.intersectionRatio.toFixed(2), visible)
target.classList.toggle('visible', visible)
})
}
// provide the observer with a target
observer.observe(target)
// To stop watching, do:
// observer.unobserve(entry.target)
The text was updated successfully, but these errors were encountered: