window.scrollTo({
top: document.body.scrollHeight,
behavior: ‘smooth’
});
When I scroll to the clickable html map region and immediately click the screen will start to scroll then stop. However, if I scroll into that region (with my mouse) wait a second or two then click, it scrolls to the bottom of the screen no problem.
Now just to test, I did try adding a 500 millisecond delay to that code and it totally fixed it. But then i have wait half a second for it to scroll each time which isn’t great.
Here is the webpage with said issue. https://schoolhouseelectronics.com/find-your-salesman/
Any ideas? Thanks!
Matthew Mangum is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.