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 @@ ...@@ -480,7 +480,11 @@
break break
case 'cached cell': case 'cached cell':
this.$store.commit('mosys/cacheNewCell', undefined) 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 break
} }
}, },
...@@ -608,9 +612,11 @@ ...@@ -608,9 +612,11 @@
handleModal () { handleModal () {
this.modal = !this.modal this.modal = !this.modal
}, },
/*
clearTempCell () { clearTempCell () {
this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false, button: false} this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false, button: false}
}, },
*/
panGrid (obj) { panGrid (obj) {
if (this.cachedNewCell && !this.mobileTempCell.onGrid) { if (this.cachedNewCell && !this.mobileTempCell.onGrid) {
// console.log('hhhhhhhhhhhhhhhhh', obj) // console.log('hhhhhhhhhhhhhhhhh', obj)
...@@ -938,7 +944,8 @@ ...@@ -938,7 +944,8 @@
this.tmpObjects = [] this.tmpObjects = []
event.preventDefault() 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