We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I noticed that when smooth-scroll is added to an element the hook stops working. I couldn't find a way around.
The text was updated successfully, but these errors were encountered:
I have the same problem myself.
Sorry, something went wrong.
I had this issue, but I realised I only needed the smooth scroll when the user clicked one of the toggle arrows, so I have this handler:
function handleScrollButton(scrollOffset) { scrollerContainer.current.classList.add('scroll-smooth') scrollerContainer.current.scrollLeft += scrollOffset scrollerContainer.current.classList.remove('scroll-smooth') }
It adds the smooth-scroll tailwind class, performs the scroll, then removes it again. Hacky, but it works.
No branches or pull requests
I noticed that when smooth-scroll is added to an element the hook stops working.
I couldn't find a way around.
The text was updated successfully, but these errors were encountered: