I have this code :
const listElm = document.querySelector('#infinite-list');
listElm.addEventListener('scroll', e => {
if(listElm.scrollTop + listElm.clientHeight >= listElm.scrollHeight) {
this.loadMore();
}
});
The event is not fired, even if the div infinite-list contains enough html data to display; Any ides ? Btw is fired with wheel but I need to fired when scroll;