svelte-scrollto
svelte-scrollto copied to clipboard
An option to not over-scroll even when there is an offset
It would be nice if you could add an option to not over-scroll even when there is an offset, if limits of the container is reached. Sometimes there is a need for the offset, but only if there is space to scroll more because if there isn't any space left to scroll, a glitch like behaviour happens where it tries to over-scroll for a split second and fails. Then the div goes back to its expected position.
In addition, an option to not scroll at all if the element is fully visible would be nice too. It can also work with the offset hopefully, so that if the element is visible including its offset, it doesn't scroll.
Thanks for the awesome plugin btw.