Commit 23641f03 authored by christianrhansen's avatar christianrhansen

removed commented out js

parent 220e0caa
......@@ -412,31 +412,6 @@
async mounted () {
await this.fetchData()
this.resetScrollPosition()
// this.handlerNewCell.move.dataLeft = this.$refs.move.getAttribute('data-left')
// console.log(this.handlerNewCell.move.dataLeft)
// this.testMove = this.$refs.move.getAttribute('data-left')
/*
let options = {
rootMargin: '0px',
threshold: [0.2, 0.4, 0.6, 0.8, 1.0]
}
let th = []
for (let i = 0; i <= 1.0; i += 0.01) {
th.push(i)
}
options.threshold = th
*/
/*
let observer = new IntersectionObserver(this.observerCallback)
observer.observe(this.$refs.move)
// observer.observe(this.$refs._mobileTempCell)
this.observer = observer
*/
},
beforeDestroy () {
this.observer.disconnect()
......@@ -525,34 +500,6 @@
}
}
},
/*
getHandlerPosition (val) {
if (val === 'move' && this.$refs.move) console.log('move', this.$refs.move.dataset.left)
if (val === 'resize' && this.$refs.resize) {
// console.log('resize', this.$refs.resize.dataset.left)
console.log('bla', this.$refs.resize)
}
},
*/
/*
// observerCallback (entries, observer) {
observerCallback (entries) {
let target = entries[0]
if (!target.isIntersecting) {
this.handlerNewCellTemp.visibility = true
if (Math.sign(target.boundingClientRect.left) === 1) {
this.handlerNewCellTemp.left = window.innerWidth - 40
}
else {
this.handlerNewCellTemp.left = 0
}
}
else {
this.handlerNewCellTemp.visibility = false
}
},
*/
handleMoveCell (obj) {
this.handlerNewCellTemp.left = -100
this.handlerNewCell.move.x = obj.position.left
......
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