save blocks when brushing off canvas

This commit is contained in:
Hugh Bord 2021-12-26 12:37:16 +10:00
parent 666a61ee43
commit 5fb166e263
3 changed files with 6 additions and 3 deletions

View File

@ -77,7 +77,6 @@ A most latest production build to use is available at https://asciibird.jewbird.
## Bugs to fix
* If you brush off canvas you cannot undo the changed blocks
* If you apply an empty block from a brush, it will remove the char when it is supposed to leave the block alone.
* A bigger circle brush is a good example for this one.
* Can't type in dialogs

View File

@ -1237,6 +1237,7 @@ export default {
break;
case "post":
this.$store.commit("toggleDisableKeyboard", true);
this.isShowingDialog = true;
this.$dialog
.prompt({
title: "HTTP Post your Ascii",
@ -1289,7 +1290,7 @@ export default {
this.isShowingDialog = false;
});
this.isShowingDialog = true;
break;
}
},

View File

@ -410,10 +410,13 @@ export default {
break;
}
},
isMouseOnCanvas() {
isMouseOnCanvas(val, old) {
if (!this.isSelecting) {
this.clearToolCanvas();
this.canTool = false;
// if (!this.isBrushing) {
this.dispatchBlocks()
// }
}
},
gridView(val, old) {