test
parent
e1f4457fab
commit
ed6a95c211
|
@ -65,6 +65,11 @@ if (!customElements.get('media-gallery')) {
|
|||
const activeThumbnail = this.elements.thumbnails.querySelector(`[data-target="${mediaId}"]`);
|
||||
this.setActiveThumbnail(activeThumbnail);
|
||||
this.announceLiveRegion(activeMedia, activeThumbnail.dataset.mediaPosition);
|
||||
|
||||
// check if is a video and play it
|
||||
const video = activeMedia.querySelector('video');
|
||||
if (video) video.play();
|
||||
|
||||
}
|
||||
|
||||
setActiveThumbnail(thumbnail) {
|
||||
|
|
Loading…
Reference in New Issue