Commit 52675cf8 authored by christianrhansen's avatar christianrhansen

cleaned mobileCellResize()

parent 527a06cc
......@@ -667,20 +667,9 @@
async mobileCellResize (annotation, _w, _h) {
let
parsed = annotation.target.selector.parse(),
[x, y, w, h] = parsed.xywh
console.log('mobileCellResize', w, h)
/*
// ----- w
if (_w === -1) if (w > 1) w += _w
if (_w === 1 && x < this.grid.config.columns - w + 1) w += _w
// ----- h
if (_h === -1) if (h > 1) h += _h
if (_h === 1 && y < this.grid.config.rows - h + 1) h += _h
*/
// w += _w
// h += _h
sliced = parsed.xywh.slice(0, 4),
x = sliced[0],
y = sliced[1]
const value = { xywh: [x, y, _w, _h] }
annotation.target.selector.value = value
......
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