@markcellus, thanks for creating such a versatile package to handle more complex and programmatic scrolling needs.
Would you consider adding a scrollBy method that accounts for the current scroll offset of the target, similar to how the browser's built-in APIs offer both scrollTo and scrollBy methods?
@markcellus, thanks for creating such a versatile package to handle more complex and programmatic scrolling needs.
Would you consider adding a
scrollBy
method that accounts for the current scroll offset of the target, similar to how the browser's built-in APIs offer bothscrollTo
andscrollBy
methods?scrollTo
(MDN docs)scrollBy
(MDN docs)Thanks!