embiem / react-canvas-draw

React Component for drawing in canvas
https://embiem.github.io/react-canvas-draw/
MIT License
892 stars 315 forks source link

Animation events continue after loading new data #149

Open leeprobert opened 2 years ago

leeprobert commented 2 years ago

If you use the loadSaveData method whilst there is already a drawing in progress it doesn't clear the animation before starting the new one. The result is that it flickers between the two data sets.