mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
lightbox: Remove any video players when navigating thumbnails.
This commit is contained in:
@@ -647,6 +647,9 @@ export function initialize(): void {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#lightbox_overlay").on("click", ".image-list .image", function (this: HTMLElement) {
|
$("#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();
|
const $media_list = $(this).parent();
|
||||||
let $original_media_element;
|
let $original_media_element;
|
||||||
const is_video = $(this).hasClass("lightbox_video");
|
const is_video = $(this).hasClass("lightbox_video");
|
||||||
|
|||||||
Reference in New Issue
Block a user