Replies: 1 comment
-
In that case, you can use the const { left, top } = elem.getBoundingClientRect();
scrollbar.scrollTo(
/* x */ left - scrollbar.bounding.left,
/* y */ top - scrollbar.bounding.top,
/* duration */ 300,
/* easing, callback */ {},
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to customize
Scrollbar.scrollIntoView
speed (or duration)?Sometime it just scrolls too fast 😭
Beta Was this translation helpful? Give feedback.
All reactions