Skip to content
New issue

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

Smooth scrolling #81

Open
AdamMadrzejewski opened this issue Mar 12, 2020 · 0 comments
Open

Smooth scrolling #81

AdamMadrzejewski opened this issue Mar 12, 2020 · 0 comments

Comments

@AdamMadrzejewski
Copy link

I would suggest implementing a smooth scrolling. From one of the latest issues, I've found that the scroll speed #80 can't be implemented as the library uses the native scrolls. Anyway, the smooth scroll property is native.

In my code, I have used this code to achieve the smooth scrolling

    customScrollRef.current.innerContainerRef.current.scroll({
        behavior: 'smooth',
        left: 0,
        top: contentScrollTopValue
    })

It would be great to have a boolean property on the CustomScroll like smoothScroll={true}, probably true by default would be a better initial value.

What do you think about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant