From 39f707d7be0e66ecd9c69251bbcbffe8b3353dc6 Mon Sep 17 00:00:00 2001 From: Yueyu Date: Wed, 1 Sep 2021 19:49:07 +0800 Subject: [PATCH] Don't remove shape when cancelling camera fill --- src/painteditor/Paint.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/painteditor/Paint.js b/src/painteditor/Paint.js index 0ea01da..c210ea2 100644 --- a/src/painteditor/Paint.js +++ b/src/painteditor/Paint.js @@ -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');