confetti-js icon indicating copy to clipboard operation
confetti-js copied to clipboard

Canvas alignment altered before / after confetti annimation.

Open scottherlihy opened this issue 4 years ago • 0 comments

I have css aligning my canvas to the center of the screen. When I run render() I see the animation as expected and when I run clear it resets my canvas. However, when it resets my canvas to the left when it is meant to be in the center.

I think these lines are generally unrelated, but when looking at the source code they jumped out to me and dont look to be correct: https://github.com/Agezao/confetti-js/blob/27cc175c247f715132d6f2c19f8118a213a1f664/src/confetti.js#L184-L186

scottherlihy avatar Feb 02 '21 14:02 scottherlihy