Compare commits
No commits in common. "fee872ea5b7bafcb1238f67059c83a9549975b73" and "0515d7b486254cedc6854a6b253664e1ac4332e8" have entirely different histories.
fee872ea5b
...
0515d7b486
1 changed files with 0 additions and 21 deletions
|
@ -28,9 +28,6 @@ const eta = computed(() =>{
|
|||
})
|
||||
|
||||
const dragging = (e) => {
|
||||
if (props.waitingRoom || props.current) {
|
||||
return
|
||||
}
|
||||
if (e.type == 'touchstart') {
|
||||
e.preventDefault()
|
||||
const list_target = e.target.closest('li')
|
||||
|
@ -49,9 +46,6 @@ const dragging = (e) => {
|
|||
}
|
||||
|
||||
const dragend = (e) => {
|
||||
if (props.waitingRoom || props.current) {
|
||||
return
|
||||
}
|
||||
e.preventDefault()
|
||||
if (e.type == 'touchend') {
|
||||
const drop_target = document.getElementById('draggedover')
|
||||
|
@ -75,9 +69,6 @@ const dragend = (e) => {
|
|||
}
|
||||
|
||||
const dropped = (e) => {
|
||||
if (props.waitingRoom || props.current) {
|
||||
return
|
||||
}
|
||||
e.preventDefault()
|
||||
e.target.closest('li').classList.remove('draggedoverBottom')
|
||||
e.target.closest('li').classList.remove('draggedoverTop')
|
||||
|
@ -91,20 +82,11 @@ const dropped = (e) => {
|
|||
}
|
||||
|
||||
const dragover = (e) => {
|
||||
if (props.waitingRoom || props.current) {
|
||||
return
|
||||
}
|
||||
e.preventDefault()
|
||||
var source_index = 0
|
||||
var target = null
|
||||
if (e.type == 'touchmove') {
|
||||
target = document.elementFromPoint(e.touches[0].clientX, e.touches[0].clientY)
|
||||
if (!target) {
|
||||
return
|
||||
}
|
||||
if(target.closest('li') == null || target.closest('li').classList.contains('current') || target.closest('li').classList.contains('waitingRoom')) {
|
||||
return
|
||||
}
|
||||
source_index = $(e.target.closest('li')).index()
|
||||
const old_draggedover = document.getElementById('draggedover')
|
||||
if (old_draggedover) {
|
||||
|
@ -126,9 +108,6 @@ const dragover = (e) => {
|
|||
}
|
||||
}
|
||||
const dragleave = (e) => {
|
||||
if (props.waitingRoom || props.current) {
|
||||
return
|
||||
}
|
||||
e.preventDefault()
|
||||
e.target.closest('li').classList.remove('draggedoverTop')
|
||||
e.target.closest('li').classList.remove('draggedoverBottom')
|
||||
|
|
Loading…
Add table
Reference in a new issue