Commit 424125c0 authored by christianrhansen's avatar christianrhansen

using clearHandler for temp cell instead of using an own function

parent 6cec8d00
......@@ -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')
},
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment