Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 27, 2022
1 parent 62f5d85 commit b65a3b4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
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 b65a3b4

Please sign in to comment.