Commit ed19847c authored by christianrhansen's avatar christianrhansen

removed unused function

parent 77fad235
......@@ -370,8 +370,6 @@
}
},
async mounted () {
// window.addEventListener(this.scrollTest)
// this.$el.addEventListener('scroll', this.scrollTest, false)
await this.fetchData()
this.resetScrollPosition()
......@@ -480,46 +478,6 @@
_resizeHandler.topLeft.pos = 'fixed on-right-side'
}
},
scrollTest () {
// console.log(this.$el.scrollLeft)
// console.log(this.mobileTempCell.x, this.mobileTempCell.ox)
// console.log(this.gridDimensions.full.cell.width * (this.mobileTempCell.x - 1), this.$el.scrollLeft)
let distanceToLeft = this.$refs._mobileTempCell.getBoundingClientRect().x
// console.log(distanceToLeft)
if (distanceToLeft < 1) this.resizeHandler.topLeft.x = 20
else if (distanceToLeft >= 20 && distanceToLeft <= window.innerWidth - 20) {
// console.log('bla')
this.resizeHandler.topLeft.x = distanceToLeft
}
else if (distanceToLeft > window.innerWidth - 20) this.resizeHandler.topLeft.x = window.innerWidth - 20
/*
if (distanceToLeft >= 20 - this.gridDimensions.full.cell.width) {
this.resizeHandler.topLeft.x = distanceToLeft
}
*/
/*
let scrollPosLeft = this.$el.scrollLeft
let tempCellLeft = this.mobileTempCell.left
if (scrollPosLeft > tempCellLeft) {
// console.log('groesser')
this.resizeHandler.topLeft.x = 20
}
if (scrollPosLeft < tempCellLeft && scrollPosLeft > tempCellLeft - this.gridDimensions.full.cell.width) {
// console.log('ganz sichtbar', tempCellLeft - scrollPosLeft)
this.resizeHandler.topLeft.x = tempCellLeft - scrollPosLeft + 20
}
if (scrollPosLeft < tempCellLeft) {
console.log('kleiner')
this.resizeHandler.topLeft.x = window.innerWidth - 20
}
*/
},
handleTopLeft (obj) {
this.resizeHandler.topLeft.x = obj.position.left
this.resizeHandler.topLeft.y = obj.position.top
......
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