diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-17 17:21:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-17 17:21:36 +0900 |
| commit | 7e2b70f91288813423e3108ca4f8ea7448154d8d (patch) | |
| tree | 9cd0d927847eb7d0ac1d4a42f82d82207c2cae9a /src | |
| parent | 10.64.1 (diff) | |
| download | misskey-7e2b70f91288813423e3108ca4f8ea7448154d8d.tar.gz misskey-7e2b70f91288813423e3108ca4f8ea7448154d8d.tar.bz2 misskey-7e2b70f91288813423e3108ca4f8ea7448154d8d.zip | |
[Client] UIの動きを減らすオプションが一部のアニメーションに適用されなかったのを修正
Resolve #3632
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/components/reactions-viewer.vue | 2 | ||||
| -rw-r--r-- | src/client/app/common/views/directives/particle.ts | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/reactions-viewer.vue b/src/client/app/common/views/components/reactions-viewer.vue index a55aa003a1..a651afe7c8 100644 --- a/src/client/app/common/views/components/reactions-viewer.vue +++ b/src/client/app/common/views/components/reactions-viewer.vue @@ -67,6 +67,8 @@ export default Vue.extend({ }); }, anime(reaction: string) { + if (this.$store.state.device.reduceMotion) return; + this.$nextTick(() => { const rect = this.$refs[reaction].$el.getBoundingClientRect(); diff --git a/src/client/app/common/views/directives/particle.ts b/src/client/app/common/views/directives/particle.ts index b3688a3cf1..4b09b4f4d5 100644 --- a/src/client/app/common/views/directives/particle.ts +++ b/src/client/app/common/views/directives/particle.ts @@ -2,6 +2,8 @@ import Particle from '../components/particle.vue'; export default { bind(el, binding, vn) { + if (vn.context.$store.state.device.reduceMotion) return; + el.addEventListener('click', () => { const rect = el.getBoundingClientRect(); |