Commit 8f19fd82 authored by christianrhansen's avatar christianrhansen

variable renaming

parent a738b0f1
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
cell-handler-mobile.temp-handler.shadow-1( cell-handler-mobile.temp-handler.shadow-1(
v-touch-pan="handleMoveCell", v-touch-pan="handleMoveCell",
:doubleTap="{el: $el, type: 'scroll', oLeft: mobileTempCell.left}", :doubleTap="{el: $el, type: 'scroll', oLeft: mobileTempCell.left}",
:class="[(!mobileTempCell.onGrid || tempHandler.move.intersectingMain || handlerNewCell.resize.pushed || handlerNewCell.move.pushed ? 'hide': 'show'), (tempHandler.move.side === 'left' ? 'left-side' : 'right-side')]", :class="[(!mobileTempCell.onGrid || tempHandler.move.intersectingMainHandler || handlerNewCell.resize.pushed || handlerNewCell.move.pushed ? 'hide': 'show'), (tempHandler.move.side === 'left' ? 'left-side' : 'right-side')]",
:style="{top: handlerNewCell.move.y + 59 - 20 + 'px'}",) :style="{top: handlerNewCell.move.y + 59 - 20 + 'px'}",)
q-icon.self-center.rotate-180(name="open_with", size="22px") q-icon.self-center.rotate-180(name="open_with", size="22px")
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
//----- (when main resize handler is outside of viewport) //----- (when main resize handler is outside of viewport)
cell-handler-mobile.temp-handler.shadow-1( cell-handler-mobile.temp-handler.shadow-1(
v-touch-pan="handleResizeCell", v-touch-pan="handleResizeCell",
:class="[(!mobileTempCell.onGrid || tempHandler.resize.intersectingMain || handlerNewCell.move.pushed || handlerNewCell.resize.pushed ? 'hide': 'show'), (tempHandler.resize.side === 'left' ? 'left-side' : 'right-side')]", :class="[(!mobileTempCell.onGrid || tempHandler.resize.intersectingMainHandler || handlerNewCell.move.pushed || handlerNewCell.resize.pushed ? 'hide': 'show'), (tempHandler.resize.side === 'left' ? 'left-side' : 'right-side')]",
:style="{top: handlerNewCell.resize.y + 59 - 20 + 'px'}",) :style="{top: handlerNewCell.resize.y + 59 - 20 + 'px'}",)
q-icon.self-center(name="signal_cellular_4_bar", size="12px", style="margin-left: -3px;") q-icon.self-center(name="signal_cellular_4_bar", size="12px", style="margin-left: -3px;")
...@@ -343,8 +343,8 @@ ...@@ -343,8 +343,8 @@
}, },
handlerNewCellTemp: {visibility: true, left: 0}, handlerNewCellTemp: {visibility: true, left: 0},
tempHandler: { tempHandler: {
move: {left: undefined, intersectingMain: false, side: undefined}, move: {left: undefined, intersectingMainHandler: false, side: undefined},
resize: {left: undefined, intersectingMain: false, side: undefined} resize: {left: undefined, intersectingMainHandler: false, side: undefined}
} }
} }
}, },
...@@ -451,7 +451,7 @@ ...@@ -451,7 +451,7 @@
// -------------------- move // -------------------- move
if (obj.element === 'move') { if (obj.element === 'move') {
this.tempHandler.move.intersectingMain = obj.intersecting this.tempHandler.move.intersectingMainHandler = obj.intersecting
// behind left side // behind left side
if (_offsetLeft < 0) { if (_offsetLeft < 0) {
...@@ -459,18 +459,18 @@ ...@@ -459,18 +459,18 @@
} }
// intersecting // intersecting
else if (isNaN(_offsetLeft)) { else if (isNaN(_offsetLeft)) {
if (this.tempHandler.move.intersectingMain && this.tempHandler.move.side === 'right') this.tempHandler.resize.intersectingMain = false if (this.tempHandler.move.intersectingMainHandler && this.tempHandler.move.side === 'right') this.tempHandler.resize.intersectingMainHandler = false
} }
// behind right side // behind right side
else if (_offsetLeft === 1) { else if (_offsetLeft === 1) {
this.tempHandler.move.side = 'right' this.tempHandler.move.side = 'right'
this.tempHandler.resize.intersectingMain = true this.tempHandler.resize.intersectingMainHandler = true
} }
} }
// -------------------- resize // -------------------- resize
else if (obj.element === 'resize') { else if (obj.element === 'resize') {
this.tempHandler.resize.intersectingMain = obj.intersecting this.tempHandler.resize.intersectingMainHandler = obj.intersecting
// on left side // on left side
if (_offsetLeft === -1) { if (_offsetLeft === -1) {
......
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