Commit 51928ec7 authored by christianrhansen's avatar christianrhansen

mobile: hide temp move button when temp cell is intersecting

parent 415a6e67
......@@ -476,18 +476,24 @@
// console.log('mobileTempCell distance left', this.mobileTempCell.x * this.gridDimensions.full.cell.width - 1)
// if (target.boundingClientRect.x < this.handlerNewCell.size.width) {
if (!target.isIntersecting) {
console.log('is NOT intersecting')
// console.log('outside')
// this.handlerNewCell.move.inViewport = false
// this.handlerNewCell.move.x = 20
this.dummyButton.visibility = true
if (scrollLeft < this.mobileTempCell.x * this.gridDimensions.full.cell.width - 1) {
console.log('--->')
// console.log('--->')
this.dummyButton.left = window.innerWidth - 40
}
if (scrollLeft > this.mobileTempCell.x * this.gridDimensions.full.cell.width) {
console.log('<---')
// console.log('<---')
this.dummyButton.left = 0
}
}
else {
console.log('is intersecting')
this.dummyButton.visibility = false
}
/*
else {
console.log('INSIDE')
......@@ -1324,8 +1330,9 @@
handler-width = 40px
.dummyButtonHide
left -50px
/*opacity 0*/
width 0!important
overflow hidden
.handler-new-cell
width handler-width
height handler-width
......
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