enhance(frontend): アニメーション設定で画面上のエフェクトも考慮するように (#15576)

* enhance(frontend): アニメーション設定で画面上のエフェクトも考慮するように

* Update Changelog
This commit is contained in:
かっこかり 2025-03-03 17:46:38 +09:00 committed by GitHub
parent 59567a7ccc
commit 01a3eabc4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 10 additions and 7 deletions

View file

@ -479,7 +479,7 @@ function react(): void {
reaction: '❤️',
});
const el = reactButton.value;
if (el) {
if (el && defaultStore.state.animation) {
const rect = el.getBoundingClientRect();
const x = rect.left + (el.offsetWidth / 2);
const y = rect.top + (el.offsetHeight / 2);