Skip to content

Commit

Permalink
Merge pull request scratchfoundation#512 from yueyuzhao/issue/511
Browse files Browse the repository at this point in the history
Don't remove shape when cancelling camera fill
  • Loading branch information
chrisgarrity authored Sep 20, 2021
2 parents 009bcb5 + 39f707d commit d0dc916
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 d0dc916

Please sign in to comment.