This commit is contained in:
2026-07-16 03:51:03 +02:00
parent e2c277086f
commit 4ffe83fa9d
2 changed files with 4 additions and 3 deletions

View File

@@ -2943,7 +2943,7 @@ body.layout-legacy .scroll-to-bottom svg {
padding: 10px; padding: 10px;
background: var(--comment-bg); background: var(--comment-bg);
/* Very light seethrough */ /* Very light seethrough */
border: 1px solid rgba(255, 255, 255, 0.05); border: 1px solid var(--nav-border-color);
border-radius: 0; border-radius: 0;
/* No rounded corners */ /* No rounded corners */
position: relative; position: relative;

View File

@@ -4243,7 +4243,7 @@ class CommentSystem {
holdTimer = setTimeout(() => { holdTimer = setTimeout(() => {
holdFired = true; holdFired = true;
window.stickerPreview?.show(url, isVideo, name, url); window.stickerPreview?.show(url, isVideo, name, url);
}, 400); }, 600);
}; };
const cancelHold = () => { clearTimeout(holdTimer); isTouchHold = false; }; const cancelHold = () => { clearTimeout(holdTimer); isTouchHold = false; };
const endHold = () => { const endHold = () => {
@@ -4273,8 +4273,9 @@ class CommentSystem {
if (window.stickerPreview?.isShowing) window.stickerPreview.show(url, isVideo, name, url); if (window.stickerPreview?.isShowing) window.stickerPreview.show(url, isVideo, name, url);
}); });
media.addEventListener('touchstart', () => startHold(true), { passive: true }); media.addEventListener('touchstart', () => startHold(true), { passive: true });
media.addEventListener('touchmove', cancelHold, { passive: true });
media.addEventListener('touchend', endHold); media.addEventListener('touchend', endHold);
media.addEventListener('touchcancel', endHold); media.addEventListener('touchcancel', cancelHold);
// Right-click (desktop) → favorites; suppressed on mobile when hold gesture is active // Right-click (desktop) → favorites; suppressed on mobile when hold gesture is active
media.addEventListener('contextmenu', (e) => { media.addEventListener('contextmenu', (e) => {
e.preventDefault(); e.preventDefault();