Commit 07c71991 authored by christianrhansen's avatar christianrhansen

removed unused method clickTempCell

parent b1b99d42
Pipeline #51211 passed with stage
in 5 minutes and 55 seconds
......@@ -108,7 +108,7 @@
//----------------------------------------------------------------------------------------------- temporary cell
.cell-item.temp-cell(
v-if="cellHandler.resize.pushed || cellHandler.move.pushed || cachedNewCell",
@click="clickTempCell", :style="getCellStyle(tempCell)",
:style="getCellStyle(tempCell)",
:class="{'edit': tempCell.type === 'edit'}")
//------------------------------------------------------------------------------------------------- move handler
......@@ -200,6 +200,7 @@
@click.right="toggleAxis()",
:style="{'grid-row-end':'span ' + data.configuration.rows, 'grid-column-start': n, 'grid-column-end': n}")
// buttons for mode toggle
.fixed-top-right.text-center.q-mr-md.q-mt-sm.text-white.z-max(v-if="editGrid")
q-btn-group.q-mr-md
q-btn.bg-grey-9(@click="toggleAxis()", flat)
......@@ -488,22 +489,6 @@
closePanelHandler () {
this.clearHandler('selected cell')
},
clickTempCell (e) {
let
pos = this.getGridPositionForEvent(e),
tempCell = this.tempCell
document.removeEventListener('mousemove', this.mouseMoveListener)
Object.assign(tempCell, {
hidden: false,
x: pos.x,
y: pos.y,
width: 1,
height: 1
})
this.addCell()
},
mouseMoveListener (e) {
console.log('mouseMoveListener is active')
let pos = this.getGridPositionForEvent(e)
......
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