1
0

Adjust heart emitter position

This commit is contained in:
2025-05-26 05:46:56 +02:00
parent d08c0321d2
commit 151e40139d

View File

@@ -326,8 +326,8 @@ _runJoyAnimation(onFinish) {
const catRect = this.img.getBoundingClientRect();
const contRect = this.container.getBoundingClientRect();
// <-- Hier kannst du x/y anpassen!
const emitterX = catRect.right - contRect.left + 16; // <-- X-Versatz, mehr = weiter rechts
const emitterY = contRect.bottom - catRect.bottom + 10; // <-- Y-Versatz, mehr = weiter oben
const emitterX = catRect.right - contRect.left + 34; // <-- 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';