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