Merge pull request #512 from yueyuzhao/issue/511

Don't remove shape when cancelling camera fill
This commit is contained in:
chrisgarrity 2021-09-20 20:24:22 +01:00 committed by GitHub
commit d0dc91626f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');