BosNaufal / react-scrollbar

The Simplest Scroll Area Component with custom scrollbar for React JS. https://bosnaufal.github.io/react-scrollbar
MIT License
71 stars 30 forks source link

Transitions while changing the block size #5

Closed usulpro closed 8 years ago

usulpro commented 8 years ago

noticeable that scrollbar reaction is delayed when resizing windows (see horizontal scrollbar in Demo)

BosNaufal commented 8 years ago

@UsulPro When window size has changed, react scrollbar calculates for the next width but it is waiting for mouse interaction inside of it to resize its scrollbar (horizontal/vertical). Because the calculation of scrollbar length will happen when it got an interaction.

I have no Idea to have a better solution. Have you any?

usulpro commented 8 years ago

Yes, I'm working on it this branch the point is that it is necessary to left css transition only for scrolling by mouse wheel when all else is ready I will PR