From b871449cc7850fc05a4eca9988134002495f46e5 Mon Sep 17 00:00:00 2001 From: Stefan Franke Date: Wed, 22 Jul 2026 11:04:18 +0200 Subject: [PATCH] fix(spotdiff): Klick-Position stimmt jetzt auf Retina-Displays (kein doppelter DPR-Skalier) --- minigames/spotdiff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minigames/spotdiff.js b/minigames/spotdiff.js index f010079..680c3bc 100644 --- a/minigames/spotdiff.js +++ b/minigames/spotdiff.js @@ -335,7 +335,7 @@ window.MG_spotdiff = (function() { canvasB.addEventListener('click', e => { if (found.size >= scene.spots.length) return; const rect = canvasB.getBoundingClientRect(); - const mx = (e.clientX - rect.left) * (canvasB.width / rect.width / (window.devicePixelRatio || 1)); + const mx = (e.clientX - rect.left) * (canvasB.width / rect.width); const my = (e.clientY - rect.top) * (canvasB.height / rect.height); // Reihenfolge = Priorität: erste passende Spot gewinnt (radial-Spots vor rect-Catchall)