Commit 713a21b9 authored by christianrhansen's avatar christianrhansen

fixed upshowing temp-move-handler on initial setting up a new cell

parent c4be195c
Pipeline #19627 passed with stage
in 4 minutes and 12 seconds
...@@ -144,8 +144,9 @@ ...@@ -144,8 +144,9 @@
//----------------------------------------------------------------------------------------------- move handler //----------------------------------------------------------------------------------------------- move handler
//----- (main) //----- (main)
v-if="mobileTempCell.onGrid && !handlerNewCell.resize.pushed",
cell-handler-mobile.absolute( cell-handler-mobile.absolute(
v-if="mobileTempCell.onGrid && !handlerNewCell.resize.pushed", v-if="!handlerNewCell.resize.pushed",
@onIntersectionChange="intersectionChanged", @onIntersectionChange="intersectionChanged",
:element="'move'", :element="'move'",
v-touch-pan="handleMoveCell", v-touch-pan="handleMoveCell",
...@@ -157,14 +158,15 @@ ...@@ -157,14 +158,15 @@
//----- (when main move handler is outside of viewport) //----- (when main move handler is outside of viewport)
cell-handler-mobile.temp.fixed( cell-handler-mobile.temp.fixed(
v-touch-pan="handleMoveCell", v-touch-pan="handleMoveCell",
:class="[(tempHandler.move.visibility || handlerNewCell.resize.pushed || handlerNewCell.move.pushed ? 'temp-hide': 'temp-show'), (tempHandler.move.side === 'left' ? 'left-side' : 'right-side')]", :class="[(!mobileTempCell.onGrid || tempHandler.move.visibility || 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")
//--------------------------------------------------------------------------------------------- resize handler //--------------------------------------------------------------------------------------------- resize handler
//----- (main) //----- (main)
v-if="mobileTempCell.onGrid && !handlerNewCell.move.pushed",
cell-handler-mobile.absolute( cell-handler-mobile.absolute(
v-if="mobileTempCell.onGrid && !handlerNewCell.move.pushed", v-if="!handlerNewCell.move.pushed",
@onIntersectionChange="intersectionChanged", @onIntersectionChange="intersectionChanged",
:element="'resize'", :element="'resize'",
v-touch-pan="handleResizeCell", v-touch-pan="handleResizeCell",
...@@ -176,7 +178,7 @@ ...@@ -176,7 +178,7 @@
//----- (when main resize handler is outside of viewport) //----- (when main resize handler is outside of viewport)
cell-handler-mobile.temp.fixed( cell-handler-mobile.temp.fixed(
v-touch-pan="handleResizeCell", v-touch-pan="handleResizeCell",
:class="[(tempHandler.resize.visibility || handlerNewCell.move.pushed || handlerNewCell.resize.pushed ? 'temp-hide': 'temp-show'), (tempHandler.resize.side === 'left' ? 'left-side' : 'right-side')]", :class="[(!mobileTempCell.onGrid || tempHandler.resize.visibility || 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;")
...@@ -1315,10 +1317,10 @@ ...@@ -1315,10 +1317,10 @@
transition opacity ease 350ms transition opacity ease 350ms
opacity 0 opacity 0
&.temp-hide &.hide
width 0!important width 0!important
overflow hidden overflow hidden
&.temp-show &.show
opacity 1 opacity 1
&.left-side &.left-side
......
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