Hi Phillip,
You can leave a link hidden on the screen, which when clicking on it opens the popup. And put this on the screen to wait for the Scroll event to end:
window.addEventListener("scroll", (event) => {
if($(window).scrollTop() + window.innerHeight > $(document).height() - 50) {
document.getElementById("myCheck").click();
console.log("reached bottom!");
}
});
Best regards,
Eduardo