react-scroll-horizontal icon indicating copy to clipboard operation
react-scroll-horizontal copied to clipboard

Component starts already scrolled

Open Hyslach653 opened this issue 3 years ago • 0 comments

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: Screenshot 2022-07-13 at 11 54 57

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

Hyslach653 avatar Jul 13 '22 09:07 Hyslach653