dawn theme - stop size selection from scrolling to images

Hello, how can i stop auto-scrolling back to images when SIZE selection is picked.

Thanks :slightly_smiling_face:

Hi @xnyjyh

This is Richard from PageFly - Shopify Page Builder App

Please find this code in media-gallery.js

if (!this.elements.thumbnails || this.dataset.desktopLayout === ‘stacked’) {
activeMedia.scrollIntoView({behavior: ‘smooth’});
}

Then you can disable the one that has bolded by remove it or comment it.

The result should be

if (!this.elements.thumbnails || this.dataset.desktopLayout === 'stacked') {
   //activeMedia.scrollIntoView({behavior: 'smooth'});
}

Hope this can help you solve the issue

Best regards,

Richard | PageFly