Prevent feed scroll when triggered from markers

This commit is contained in:
2022-09-14 16:54:11 +02:00
parent 589498a11a
commit a092b5e39a
2 changed files with 2 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ function initPage(asHash) {
hasVideo: true,
onMediaChange: (oMedia) => {
oSpot.updateHash('media', oMedia.id);
goToPost({type: 'media', id: oMedia.id});
if(oMedia.set == 'post-medias') goToPost({type: 'media', id: oMedia.id});
}
});

View File

@@ -387,6 +387,7 @@
, $Media: $link.attr('data-type')=='video'?this.$video:this.$image
, width: $link.find('img').attr('width')
, height: $link.find('img').attr('height')
, set: $link.attr('data-lightbox') || $link.attr('rel')
//ADDED-END
});
}