Skip to content

Commit

Permalink
Don't remove shape when cancelling camera fill
Browse files Browse the repository at this point in the history
  • Loading branch information
yueyuzhao committed Sep 1, 2021
1 parent ce9200b commit 39f707d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/painteditor/Paint.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,9 @@ export default class Paint {
cc.onmousedown = Paint.closeCameraMode;
}

static closeCameraMode () {
static closeCameraMode (evt) {
evt.preventDefault();
evt.stopPropagation();
ScratchAudio.sndFX('exittap.wav');
Camera.close();
Paint.selectButton('select');
Expand Down

0 comments on commit 39f707d

Please sign in to comment.