Commit bdbedf71 authored by christianrhansen's avatar christianrhansen

mosys mobile: fixed scroll-bug when using handler on selected cell

parent 5e7edb76
<template lang="pug">
// :class="{'overflow-hidden': mobileTempCell.show && cachedNewCell && !mobileTempCell.button}",
div.cell-grid-container(
:class="{'overflow-hidden': mobileTempCell.show && cachedNewCell && !mobileTempCell.button}",
:class="{'overflow-hidden': activeHandler}",
style="overflow-y: hidden; scroll-behavior: smooth;")
q-modal(v-model="modal", minimized, content-css="background-color: #eee; border-radius: .75rem;")
grid-editor-editing-cells-mobile
......@@ -369,6 +370,7 @@
move: {left: undefined, intersectingMainHandler: false, side: undefined},
resize: {left: undefined, intersectingMainHandler: false, side: undefined}
},
activeHandler: false,
selectedCell: {type: undefined, annotation: undefined}
}
},
......@@ -561,6 +563,7 @@
this.cellHandler.move.gridPosition.column = res.x
if (obj.isFirst) {
this.activeHandler = true
this.mobileTempCell.show = true
this.mobileTempCell.button = false
this.cellHandler.move.pushed = true
......@@ -576,6 +579,7 @@
this.cellHandler.move.y = res.oy
if (obj.isFinal) {
this.activeHandler = false
this.mobileTempCell.onGrid = true
this.mobileTempCell.button = true
this.mobileTempCell.left = this.gridDimensions.full.cell.width * (res.x - 1)
......@@ -601,6 +605,7 @@
this.cellHandler.resize.gridPosition.column = res.x
if (obj.isFirst) {
this.activeHandler = true
this.mobileTempCell.show = true
this.mobileTempCell.button = false
this.cellHandler.resize.pushed = true
......@@ -613,6 +618,7 @@
this.cellHandler.resize.y = res.oy
if (obj.isFinal) {
this.activeHandler = false
this.mobileTempCell.onGrid = true
this.mobileTempCell.button = true
this.cellHandler.resize.pushed = 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