From f9943bd47aa2fdd4be6289433975cb5c923557b5 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Wed, 15 Jul 2026 23:34:00 +0200 Subject: [PATCH] tg stickers v5.2 --- public/s/js/comments.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/s/js/comments.js b/public/s/js/comments.js index 413a5a6..cf9a881 100644 --- a/public/s/js/comments.js +++ b/public/s/js/comments.js @@ -4039,6 +4039,12 @@ class CommentSystem { _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 = () => {