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

Great work BUT what's up with the speed prop? #13

Open
lucidlive opened this issue Jan 30, 2017 · 4 comments
Open

Great work BUT what's up with the speed prop? #13

lucidlive opened this issue Jan 30, 2017 · 4 comments

Comments

@lucidlive
Copy link

Your plugin is great and would have been ideal for my needs but I don't understand why you have the speed prop. The scrollbar always scrolls past where I want to scroll because of the speed animation prop. And surprisingly, you I can't turn off this feature.

I want (and I can only assume others do as well) native scroll behaviour but with a nice style.

@BosNaufal
Copy link
Owner

Hey @lucidlive,
Thanks for giving me an issue. Have you tried to change the transitions properties via css?

You can easily change it to be transition: none;. The transition/animation is caused by the .scrollbar react-scrollbar-transition class. You can modify it and it has been mentioned in the documentation section. Check it out.

https://github.com/BosNaufal/react-scrollbar#customizing-the-appearance

If I have a misunderstanding about your problem, please let me know.

@lucidlive
Copy link
Author

lucidlive commented Feb 1, 2017

Hey @BosNaufal - yeah, I set the transition to none but you have something that is programmatically changing the scroll position in a timed way. Instead of it just instantly changing the scroll position as you scroll, the dom element is slow changing X/Y position for a couple seconds after you finish scrolling.

@neomaxzero
Copy link

I'm having the same issue and i think its related to the fact that the position is depending upon the state.

@usulpro
Copy link
Contributor

usulpro commented Feb 25, 2017

Hi!
Maybe you need to provide more details about it?
I tryed to reproduce it with doc/examples/custom but everything works properly:
the speed effects only when you use a mouse wheel
and if you don't need transitions you can simply remove scrolling section from your css
Do you have any issues with this examples?

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

4 participants