Commit 948a663d authored by christianrhansen's avatar christianrhansen

mosys mobile: setted up watcher for resize-cell-handler

parent 735a329c
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
cellHandler: { cellHandler: {
size: {width: 40, height: 40}, size: {width: 40, height: 40},
move: {x: 20, y: undefined, gridPosition: {row: undefined, column: undefined}, pushed: false, pos: undefined, inViewport: undefined, onLeft: undefined, onRight: undefined, dataLeft: undefined}, move: {x: 20, y: undefined, gridPosition: {row: undefined, column: undefined}, pushed: false, pos: undefined, inViewport: undefined, onLeft: undefined, onRight: undefined, dataLeft: undefined},
resize: {x: undefined, y: undefined, pushed: false, pos: undefined} resize: {x: undefined, y: undefined, gridPosition: {row: undefined, column: undefined}, pushed: false, pos: undefined}
}, },
tempHandler: { tempHandler: {
move: {left: undefined, intersectingMainHandler: false, side: undefined}, move: {left: undefined, intersectingMainHandler: false, side: undefined},
...@@ -444,6 +444,14 @@ ...@@ -444,6 +444,14 @@
}, },
deep: true deep: true
}, },
'cellHandler.resize.gridPosition': {
handler: function (obj) {
if (this.showEditingCells) {
console.log(obj)
}
},
deep: true
},
slide (val) { slide (val) {
let icon let icon
switch (val) { switch (val) {
...@@ -588,6 +596,9 @@ ...@@ -588,6 +596,9 @@
// ---> panGrid // ---> panGrid
let res = this.getGridPositionForEvent(obj) let res = this.getGridPositionForEvent(obj)
this.cellHandler.resize.gridPosition.row = res.y
this.cellHandler.resize.gridPosition.column = res.x
if (obj.isFirst) { if (obj.isFirst) {
this.mobileTempCell.show = true this.mobileTempCell.show = true
this.mobileTempCell.button = false this.mobileTempCell.button = false
......
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