Commit 3934b56f authored by Chunchi Che's avatar Chunchi Che

fix hand spring

parent 4b8c5cff
......@@ -55,10 +55,9 @@ const CHand = (props: {
const planeRef = useRef(null);
const state = props.state;
const [hovered, setHovered] = useState(false);
const position = props.position;
const dispatch = store.dispatch;
const [position, setPosition] = useState(props.position);
const [spring, api] = useSpring(
() => ({
from: {
......@@ -81,8 +80,6 @@ const CHand = (props: {
api.start({
position,
});
setPosition(position);
}, [position]);
useHover(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment