Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
23641f03
Commit
23641f03
authored
Oct 30, 2019
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed commented out js
parent
220e0caa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
53 deletions
+0
-53
partials/GridEditor.vue
partials/GridEditor.vue
+0
-53
No files found.
partials/GridEditor.vue
View file @
23641f03
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment