We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bba771 commit a1173a3Copy full SHA for a1173a3
assets/media-gallery.js
@@ -46,7 +46,7 @@ if (!customElements.get('media-gallery')) {
46
47
this.preventStickyHeader();
48
window.setTimeout(() => {
49
- if (this.elements.thumbnails) {
+ if (!this.mql.matches || this.elements.thumbnails) {
50
activeMedia.parentElement.scrollTo({ left: activeMedia.offsetLeft });
51
}
52
const activeMediaRect = activeMedia.getBoundingClientRect();
0 commit comments