Commit 66ca87c5 authored by christianrhansen's avatar christianrhansen

mosys mobile: existing cell is only selectable when no temporary new cell on grid

parent e0ee5a76
Pipeline #19889 passed with stage
in 7 minutes and 40 seconds
......@@ -649,14 +649,16 @@
}
},
touchMobileCell (event, cell) {
Object.keys(this.annotationUIStates).filter((k) => {
if (k === cell._uuid && this.annotationUIStates[k].editing) console.log(k, cell._uuid)
else this.annotationUIStates[k].editing = false
})
this.annotationUIStates[cell._uuid].editing = !this.annotationUIStates[cell._uuid].editing
this.updateEditingCells()
this.$root.$emit('mosys_saveScrollPosition')
// this.handleCellEditClick(event, annotation)
if (!this.mobileTempCell.onGrid) {
Object.keys(this.annotationUIStates).filter((k) => {
if (k === cell._uuid && this.annotationUIStates[k].editing) console.log(k, cell._uuid)
else this.annotationUIStates[k].editing = false
})
this.annotationUIStates[cell._uuid].editing = !this.annotationUIStates[cell._uuid].editing
this.updateEditingCells()
this.$root.$emit('mosys_saveScrollPosition')
// this.handleCellEditClick(event, annotation)
}
},
handleCellTouch (event, annotation) {
if (!this.cachedNewCell) {
......
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