Don't allow the results to be collapsed when clicking draghandle

This commit is contained in:
Marc-Andre Ferland 2022-12-24 04:55:28 -05:00
parent 55049ba9d2
commit 04d67a24b6

View File

@ -837,6 +837,9 @@ function createTask(task) {
draghandle.addEventListener('mouseup', debounce((e) => {
taskEntry.setAttribute('draggable', false)
}, 2000))
draghandle.addEventListener('click', (e) => {
e.preventDefault() // Don't allow the results to be collapsed...
})
taskEntry.addEventListener('dragend', (e) => {
taskEntry.setAttribute('draggable', false);
imagePreview.querySelectorAll(".imageTaskContainer").forEach(itc => {