react-scrollbar icon indicating copy to clipboard operation
react-scrollbar copied to clipboard

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

Open lucidlive opened this issue 8 years ago • 4 comments

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.

lucidlive avatar Jan 30 '17 14:01 lucidlive

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.

BosNaufal avatar Feb 01 '17 03:02 BosNaufal

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.

lucidlive avatar Feb 01 '17 10:02 lucidlive

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

neomaxzero avatar Feb 17 '17 15:02 neomaxzero

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?

usulpro avatar Feb 25 '17 07:02 usulpro