From e0d6b1f0fdbdf758775f2a659d412dc51e6f5a20 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Mon, 17 Dec 2018 17:21:36 +0900
Subject: [PATCH] =?UTF-8?q?[Client]=20UI=E3=81=AE=E5=8B=95=E3=81=8D?=
 =?UTF-8?q?=E3=82=92=E6=B8=9B=E3=82=89=E3=81=99=E3=82=AA=E3=83=97=E3=82=B7?=
 =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=81=8C=E4=B8=80=E9=83=A8=E3=81=AE=E3=82=A2?=
 =?UTF-8?q?=E3=83=8B=E3=83=A1=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AB?=
 =?UTF-8?q?=E9=81=A9=E7=94=A8=E3=81=95=E3=82=8C=E3=81=AA=E3=81=8B=E3=81=A3?=
 =?UTF-8?q?=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Resolve #3632
---
 src/client/app/common/views/components/reactions-viewer.vue | 2 ++
 src/client/app/common/views/directives/particle.ts          | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/client/app/common/views/components/reactions-viewer.vue b/src/client/app/common/views/components/reactions-viewer.vue
index a55aa003a..a651afe7c 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 b3688a3cf..4b09b4f4d 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();