react-scroll-horizontal
react-scroll-horizontal copied to clipboard
Component starts already scrolled
I'm building an eCommerce site with React and for the product page I'm using this package for the images.
Each product has different colours, so when you change the colour the page stays the same but the information changes.
Imagine you start by seeing a product with 3 images and scroll to the end and then you click on a colour with only one image. This will be what you see:

It's like it's looking for a picture which is not there plus you have no scrolling ability.
Is there any way to like 'reinitialise' it?
Thanks