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

Resolve #7826
This commit is contained in:
syuilo 2021-09-23 23:01:32 +09:00
parent ee0ea8724b
commit 57c29fc6c5
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', () => {