w3c / IntersectionObserver

Intersection Observer
https://www.w3.org/TR/intersection-observer/
Other
3.62k stars 526 forks source link

Click on scrollbar doesn't trigger intersection callback #377

Closed Aetet closed 5 years ago

Aetet commented 5 years ago

Click on scrollbar doesn't trigger intersection callback. Example:

If we have long grid with 50 items.

Client window contains only 20 items.

We observe 25th element.

http://kb.mozillazine.org/Ui.scrollToClick must be true - 1

If we click at 49th element area - there's no triggerred event for intersection for 25th element.

Is there any workaround for this behaviour? It seems like blocker for implementing lazy load rendering.

szager-chromium commented 5 years ago

If this is a bug in a particular browser's implementation, please file a bug in the issue tracker for that browsers.

Aetet commented 5 years ago

@szager-chromium this behaviour doesn't cover in any spec. So what is reference for it?

szager-chromium commented 5 years ago

It would be helpful if you could construct a simple test page that demonstrates the problem.