mirror of https://github.com/zulip/zulip.git
lightbox: Remove any video players when navigating thumbnails.
This commit is contained in:
parent
c36c561f07
commit
b8037a9980
|
@ -647,6 +647,9 @@ export function initialize(): void {
|
|||
});
|
||||
|
||||
$("#lightbox_overlay").on("click", ".image-list .image", function (this: HTMLElement) {
|
||||
// Remove any video players so sound does not continue when
|
||||
// navigating away from a video that might be playing
|
||||
remove_video_players();
|
||||
const $media_list = $(this).parent();
|
||||
let $original_media_element;
|
||||
const is_video = $(this).hasClass("lightbox_video");
|
||||
|
|
Loading…
Reference in New Issue