ScrollMagic icon indicating copy to clipboard operation
ScrollMagic copied to clipboard

Unwanted shift on the right occur on a vertical scroll

Open ppoulard opened this issue 6 years ago • 0 comments

Hi,

I made an App with only a dependency with ScrollMagic v2.0.7 There are 2 columns that scroll vertically, but with some more data, suddenly a shift on the right happens, then after a while scrolling down, the 2 columns are becoming clean again.

It's difficult to explain, so I have a demo that works here : https://codesandbox.io/s/react-typescript-scrollmagic-sidenotes-db4pf Ensure to open a browser in a large enough window otherwise you won't have the experience of the scroll. And reload because there is no recomputation of all the stuff on resize.

Then, to make it fail : edit src/App.tsx and change at the end of the file the value '15' by '40' which cause generating more fake data : look the result !!!!

The code is well documented and everything is handled in a single method.

Before the release of the new version with a fix of that bug, is there any workaround that would make it run correctly ?

Thanks !

ppoulard avatar Dec 18 '19 18:12 ppoulard