I've implemented your hacker news example as a vue component and I'm trying to place this component inside a pane (of a parent component) using https://antoniandre.github.io/splitpanes/.
The problem is that the handler is not triggered when I scroll to the bottom of the pane. However, if I make the pane large enough to expand beyond the bottom of the page, then the handler is triggered (presumably because the window scroll event is fired).
My understanding is that the handler should be triggered by the scroll event of a parent.
What is required so that the handler is trigged by the scroll event inside the pane?
Solved
The issue was related to the 'force-use-infinite-wrapper' attribute. The matching element is used as the parent. Removing this and simplifying the template allowed for finding the parent with the overflow scroll setting:
I've implemented your hacker news example as a vue component and I'm trying to place this component inside a pane (of a parent component) using https://antoniandre.github.io/splitpanes/.
HackerNews component template
Parent component template
It renders like this:
The problem is that the handler is not triggered when I scroll to the bottom of the pane. However, if I make the pane large enough to expand beyond the bottom of the page, then the handler is triggered (presumably because the window scroll event is fired).
My understanding is that the handler should be triggered by the scroll event of a parent.
What is required so that the handler is trigged by the scroll event inside the pane?
Solved
The issue was related to the 'force-use-infinite-wrapper' attribute. The matching element is used as the parent. Removing this and simplifying the template allowed for finding the parent with the overflow scroll setting: