tg stickers v5.2

This commit is contained in:
2026-07-15 23:34:00 +02:00
parent 805c97b8e4
commit f9943bd47a

View File

@@ -4039,6 +4039,12 @@ class CommentSystem {
_hideTimer = setTimeout(() => { overlay.innerHTML = ''; }, 200); _hideTimer = setTimeout(() => { overlay.innerHTML = ''; }, 200);
} }
}; };
// Click anywhere on the overlay to dismiss
overlay.addEventListener('click', () => window.stickerPreview.hide());
// Global mouseup: dismiss if the mouse is released anywhere outside the picker
document.addEventListener('mouseup', () => {
if (window.stickerPreview.isShowing) window.stickerPreview.hide();
});
} }
const buildPickerContent = () => { const buildPickerContent = () => {