Phx-viewport-bottom not triggered for a scrollable div


I have a scrollable container for which I would like to use phx-viewport-top and phx-viewport-bottom.

The Hooks.InfiniteScroll sets the onScroll listener on window which is not fired for a content inside the element.

Is there any way to make it work?

Thank you


it only works on the window viewport today

1 Like