Closed tochibedford closed 4 years ago
tried to use smoothscroll.min.js in my code, this way:
<script src="./js/smoothscroll.min.js"></script> <script src="./js/main.js"></script>
and call on it in main.js this way:
scrollTo(0, height);
but on testing in edge it still doesn't smooth scroll. (it just jumps to the scroll location). still works fine in chrome/mozilla. cause it's native. am I not linking it correctly?
I actually wasn't doing it correctly: meant to be:
window.scrollTo({ top: height, left: 0, behavior: 'smooth' })
tried to use smoothscroll.min.js in my code, this way:
and call on it in main.js this way:
but on testing in edge it still doesn't smooth scroll. (it just jumps to the scroll location). still works fine in chrome/mozilla. cause it's native. am I not linking it correctly?