mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix #67 - Double click on mobile on move dialog
Former-commit-id: 25e6c3c361
This commit is contained in:
parent
1c36d0d511
commit
fee1047644
@ -389,7 +389,8 @@ listing.getJSON = function (link) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
listing.moveMakeItem = function (url, name) {
|
listing.moveMakeItem = function (url, name) {
|
||||||
let node = document.createElement("li");
|
let node = document.createElement("li"),
|
||||||
|
count = 0;
|
||||||
|
|
||||||
node.dataset.url = url;
|
node.dataset.url = url;
|
||||||
node.innerHTML = name;
|
node.innerHTML = name;
|
||||||
@ -397,6 +398,18 @@ listing.moveMakeItem = function (url, name) {
|
|||||||
|
|
||||||
node.addEventListener("dblclick", listing.moveDialogNext);
|
node.addEventListener("dblclick", listing.moveDialogNext);
|
||||||
node.addEventListener("click", listing.selectMoveFolder);
|
node.addEventListener("click", listing.selectMoveFolder);
|
||||||
|
node.addEventListener('touchstart', event => {
|
||||||
|
count++;
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
count = 0;
|
||||||
|
}, 300)
|
||||||
|
|
||||||
|
if(count > 1) {
|
||||||
|
listing.moveDialogNext(event);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user