click the squares?!?!?!?!!?!?!?

This commit is contained in:
2026-09-30 19:15:10 +02:00
parent c8b722a7bc
commit a5c75dd8e5
21 changed files with 6747 additions and 3694 deletions
+3 -1
View File
@@ -82,9 +82,11 @@ const updateHoverStates = () => {
const cwModal = document.getElementById('content-warning-modal');
if ((cwModal && cwModal.style.display !== 'none') || isMobile) return;
// A Square Clicker game covers the page: the cursor over the player's area is playing, not hovering
const inGame = document.body.classList.contains('sqc-session');
document.querySelectorAll('.v0ck').forEach(p => {
const rect = p.getBoundingClientRect();
const isOver = mouseX >= rect.left && mouseX <= rect.right &&
const isOver = !inGame && mouseX >= rect.left && mouseX <= rect.right &&
mouseY >= rect.top && mouseY <= rect.bottom;
p.classList.toggle("v0ck_hover", isOver);
const gal = p.closest('.album-gallery-container');