From 2fd3364a5270bb5a94e49ec14730ced64037c1b7 Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 15 Jan 2020 09:28:31 +1000 Subject: [PATCH] fix cast anim size --- client/src/components/anims/source.cast.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/anims/source.cast.jsx b/client/src/components/anims/source.cast.jsx index 25237776..83f30805 100644 --- a/client/src/components/anims/source.cast.jsx +++ b/client/src/components/anims/source.cast.jsx @@ -6,8 +6,8 @@ function sourceCast(id, direction, idle) { const { x, y } = direction; return anime({ targets: [document.getElementById(id)], - translateX: x * window.screen.width * 0.1, - translateY: y * window.screen.height * 0.1, + translateX: x * window.innerWidth * 0.1, + translateY: y * window.innerHeight * 0.1, easing: 'easeInOutElastic', direction: 'alternate', duration: TIMES.SOURCE_DURATION_MS,