Is there a way to use a percent value in window.scrollTo()
Advertisements I have a window.scrollTo() function on my website. It uses just a number value (or pixels) which works fine in a larger-sized window but does not scroll where I want on mobile devices. Instead, I want to use a percent value (or some dynamic unit) so it scrolls where I want on all devices.… Read More Is there a way to use a percent value in window.scrollTo()