react-custom-scrollbars-2 icon indicating copy to clipboard operation
react-custom-scrollbars-2 copied to clipboard

Add scrollBehavior to various scrollto functions

Open fourjr opened this issue 2 years ago • 3 comments

Adds a scrollBehavior parameter to all scrollToX functions. The parameter accepts 3 values (auto, instant, smooth) (MDN Docs).

This resolves #20 by setting scrollBehavior to smooth.

fourjr avatar Dec 14 '21 05:12 fourjr