Prevent feed scroll when triggered from markers
This commit is contained in:
@@ -186,7 +186,7 @@ function initPage(asHash) {
|
|||||||
hasVideo: true,
|
hasVideo: true,
|
||||||
onMediaChange: (oMedia) => {
|
onMediaChange: (oMedia) => {
|
||||||
oSpot.updateHash('media', oMedia.id);
|
oSpot.updateHash('media', oMedia.id);
|
||||||
goToPost({type: 'media', id: oMedia.id});
|
if(oMedia.set == 'post-medias') goToPost({type: 'media', id: oMedia.id});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -387,6 +387,7 @@
|
|||||||
, $Media: $link.attr('data-type')=='video'?this.$video:this.$image
|
, $Media: $link.attr('data-type')=='video'?this.$video:this.$image
|
||||||
, width: $link.find('img').attr('width')
|
, width: $link.find('img').attr('width')
|
||||||
, height: $link.find('img').attr('height')
|
, height: $link.find('img').attr('height')
|
||||||
|
, set: $link.attr('data-lightbox') || $link.attr('rel')
|
||||||
//ADDED-END
|
//ADDED-END
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user