Skip to content

Commit f6f7f15

Browse files
committed
forbid setPaintingKnockout when drawing
1 parent 71da2c9 commit f6f7f15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

croquis.js

+2
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,8 @@ function Croquis(imageDataList, properties) {
717717
return paintingKnockout;
718718
};
719719
self.setPaintingKnockout = function (knockout) {
720+
if (isDrawing || isStabilizing)
721+
throw 'still drawing';
720722
paintingKnockout = knockout;
721723
paintingCanvas.style.visibility = knockout ? 'hidden' : 'visible';
722724
};

0 commit comments

Comments
 (0)