antfu / drauu

Headless SVG-based drawboard in browser.
https://drauu.netlify.app/
MIT License
1.2k stars 64 forks source link

fix: shouldn't clear undoStack when is not drawing #10

Closed hannoeru closed 3 years ago

hannoeru commented 3 years ago

Fixed the redo function when using button.

Click event in window will trigger pointerup event, which will trigger commit() to clear the undoStack.