Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 24, 2022
1 parent dae183f commit 5966562
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -61,7 +61,7 @@ function useMovingAnimation( {
0
);
const [ finishedAnimation, endAnimation ] = useReducer( counterReducer, 0 );
const [ transform, setTransform ] = useState( { x: 0, y: 0, scale: 1 } );
const [ transform, setTransform ] = useState( { x: 0, y: 0 } );
const previous = useMemo(
() => ( ref.current ? getAbsolutePosition( ref.current ) : null ),
[ triggerAnimationOnChange ]
Expand Down Expand Up @@ -140,7 +140,6 @@ function useMovingAnimation( {
from: {
x: transform.x,
y: transform.y,
scale: transform.scale,
},
to: {
x: 0,
Expand Down

0 comments on commit 5966562

Please sign in to comment.