Hello, how can i stop auto-scrolling back to images when SIZE selection is picked.
Thanks ![]()
Hello, how can i stop auto-scrolling back to images when SIZE selection is picked.
Thanks ![]()
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