fd
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user