ilyashubin/scrollbooster

When mouse up, content goes back to initial position

devmotionfr opened this issue · 2 comments

When mouse up, content goes back to initial position

I used another plugin cause I couldn't make scrollbooster work as I wanted

I was losing my mind over this, but I realized that I'm initializing ScrollBooster more than one time on the same viewport element.

This was due to re-rendering a component without re-creating its container (only refreshing inside), but the container was supposed to be the viewport of ScrollBooster. So it kept getting re-initialized over the same element.

Sharing this for the people of future.