Moving working :)
Former-commit-id: bdf9418962bd0a7a97ee620be4e31b2794ae0bd4 [formerly 97d894f08335df5cdc067cb82ae582e16bbd78ad] [formerly 45421f1cce32aed206642da7ade436bcb3aaddcf [formerly efc437c771fc77b93476c86958a9ef02ed8ec6e8]] Former-commit-id: e7fef34c75f43cbe8735236e1c797d93ec9b1024 [formerly 18ab632fa655d35753507a55d5e54f7db1df9166] Former-commit-id: b10dd0d5a334d14052122bf5d4a41ed6f370ea5b
This commit is contained in:
@@ -80,31 +80,6 @@ listing.addDoubleTapEvent = function () {
|
||||
})
|
||||
}
|
||||
|
||||
listing.moveMakeItem = function (url, name) {
|
||||
let node = document.createElement('li'),
|
||||
count = 0
|
||||
|
||||
node.dataset.url = url
|
||||
node.innerHTML = name
|
||||
node.setAttribute('aria-selected', false)
|
||||
|
||||
node.addEventListener('dblclick', listing.moveDialogNext)
|
||||
node.addEventListener('click', listing.selectMoveFolder)
|
||||
node.addEventListener('touchstart', event => {
|
||||
count++
|
||||
|
||||
setTimeout(() => {
|
||||
count = 0
|
||||
}, 300)
|
||||
|
||||
if (count > 1) {
|
||||
listing.moveDialogNext(event)
|
||||
}
|
||||
})
|
||||
|
||||
return node
|
||||
}
|
||||
|
||||
listing.moveSelected = function (event) {
|
||||
event.preventDefault()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user