Trigger onScroll is not working

Activate the scroll on an element and it is working and updating the component variable when the items scroll correctly, as shown in the images below.

However, I made a condition so that when it reaches 75 on the Y axis, an action to bring more data to make an infinite scroll. The issue is that the onScroll trigger is never fired.

Should the onScroll event work with any element? In this case I am using a div mapped to an array of items.

Captura de Tela 2024-06-11 às 16.19.56
Captura de Tela 2024-06-11 às 16.20.10

I managed to activate the onScroll trigger on the page and not on the scrolling element.

1 Like