1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 08:18:14 +09:00

enhance(client): アニメーションを減らす設定をメニューのアニメーションにも適用するように

Resolve #7826
This commit is contained in:
syuilo 2021-09-23 23:01:32 +09:00
parent 8a558eed36
commit ce4ea5071f
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,13 @@
--> -->
## 12.x.x (unreleased)
### Improvements
- アニメーションを減らす設定をメニューのアニメーションにも適用するように
### Bugfixes
## 12.91.0 (2021/09/22) ## 12.91.0 (2021/09/22)
### Improvements ### Improvements

View File

@ -1,7 +1,10 @@
import { Directive } from 'vue'; import { Directive } from 'vue';
import { defaultStore } from '@client/store';
export default { export default {
mounted(el, binding, vn) { mounted(el, binding, vn) {
if (!defaultStore.state.animation) return;
el.classList.add('_anime_bounce_standBy'); el.classList.add('_anime_bounce_standBy');
el.addEventListener('mousedown', () => { el.addEventListener('mousedown', () => {