From 505516ace533e4df6de1f3c4c87c15cec308fc44 Mon Sep 17 00:00:00 2001 From: Frank Delaguila Date: Thu, 17 Mar 2022 09:43:15 -0600 Subject: [PATCH] Slight changes --- src/components/App.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index 88b4e0a..5b83e7c 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -43,8 +43,8 @@ const Dog = ({position, scale}) => { useFrame((state, delta) => { // ref.current.position.x = THREE.MathUtils.damp(ref.current.position.x, position[0] - 2, 6, delta); - ref.current.scale.x = THREE.MathUtils.damp(ref.current.scale.x, hovered ? 0.9 : scale[0], 6, delta); - ref.current.scale.y = THREE.MathUtils.damp(ref.current.scale.y, hovered ? scale[1] + 0.2 : scale[1], 8, delta); + ref.current.scale.x = THREE.MathUtils.damp(ref.current.scale.x, hovered ? 0.75 : scale[0], 6, delta); + ref.current.scale.y = THREE.MathUtils.damp(ref.current.scale.y, hovered ? scale[1] + 0.1 : scale[1], 8, delta); // ref.current.position.x = (position[0] - 1) * scroll.current; // console.log( ref.current.position.x ); }); @@ -81,9 +81,9 @@ const App = () => { - - - + + +