diff --git a/partials/GridEditor.vue b/partials/GridEditor.vue index f6a8084378bab3c7b502950a378cfa9a609c7b19..1dadd49d25515e1c66114b8d84236f9893462347 100644 --- a/partials/GridEditor.vue +++ b/partials/GridEditor.vue @@ -480,7 +480,11 @@ break case 'cached cell': this.$store.commit('mosys/cacheNewCell', undefined) - this.clearTempCell() + // this.clearTempCell() + this.clearHandler('temp cell') + break + case 'temp cell': + this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false, button: false} break } }, @@ -608,9 +612,11 @@ handleModal () { this.modal = !this.modal }, + /* clearTempCell () { this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false, button: false} }, + */ panGrid (obj) { if (this.cachedNewCell && !this.mobileTempCell.onGrid) { // console.log('hhhhhhhhhhhhhhhhh', obj) @@ -938,7 +944,8 @@ this.tmpObjects = [] event.preventDefault() } - this.clearTempCell() + // this.clearTempCell() + this.clearHandler('temp cell') }, //