Commit Graph

4 Commits

Author SHA1 Message Date
Brad Traversy
af3b536669
Merge pull request #37 from jelenamilanovic/fix/drawing-app
Stop drawing when mouse is released outside of the canvas
2021-07-31 10:32:00 -04:00
imsyf
90d76fb5be
Set color picker default value to black
I noticed that color picker HTML element retains the last picked value from user even after the page is reloaded. This will cause inconsistency between `color` value and the actual `colorEl.value`.

This commit will always initialize color picker default value to black, the same way that `color` variable was set originally.
2021-02-22 10:05:02 +07:00
Jelena Milanovic
6a827fa4b2 Stop drawing when mouse is released outside of the canvas 2020-12-27 13:54:27 +01:00
Brad Traversy
6c7994dc12 Drawing app 2020-11-12 15:04:57 -05:00