pmndrs / react-spring

✌️ A spring physics based React animation library
http://www.react-spring.dev/
MIT License
28.28k stars 1.19k forks source link

Scrolling any Parallax scrollable children causes transform on them #798

Closed hayyaun closed 5 years ago

hayyaun commented 5 years ago

I was using parallax with some div that scrolls horizontally, when the content inside child div scroll, parallax starts transforming it's children vertically, I first thaught it is my scroll event listener which listens to parallax.container but after disabling that, I noticed that its parallax that causing this transform... how can I stop this default reaction?

aleclarson commented 5 years ago

Please provide a sandbox that demonstrates the issue. 👍

hayyaun commented 5 years ago

I'll try to make a sandbox asap... but there I find a way to stop that... by changing ParallaxLayer speed to 0 that layer won't transform on scroll

hayyaun commented 5 years ago

I'll try to make a sandbox asap... but there I find a way to stop that... by changing ParallaxLayer speed to 0 that layer won't transform on scroll