1
0

Fine-tune heart emitter X position

This commit is contained in:
2025-05-26 05:47:19 +02:00
parent 151e40139d
commit d7c1ec0782

View File

@@ -326,7 +326,7 @@ _runJoyAnimation(onFinish) {
const catRect = this.img.getBoundingClientRect();
const contRect = this.container.getBoundingClientRect();
// <-- Hier kannst du x/y anpassen!
const emitterX = catRect.right - contRect.left + 34; // <-- X-Versatz, mehr = weiter rechts
const emitterX = catRect.right - contRect.left + 20; // <-- X-Versatz, mehr = weiter rechts
const emitterY = contRect.bottom - catRect.bottom + 40; // <-- Y-Versatz, mehr = weiter oben
this.heartEmitter.style.left = emitterX + 'px';
this.heartEmitter.style.bottom = emitterY + 'px';