workaround for some drags not being accepted

https://anki.tenderapp.com/discussions/ankidesktop/26688-drag-and-drop-not-always-working
This commit is contained in:
Damien Elmes 2018-01-30 11:06:46 +10:00
parent 0cce540d83
commit 99009be1ca

View file

@ -162,6 +162,9 @@ function focusPrevious() {
}
function onDragOver(elem) {
var e = window.event;
e.dataTransfer.dropEffect = "copy";
e.preventDefault();
// if we focus the target element immediately, the drag&drop turns into a
// copy, so note it down for later instead
dropTarget = elem;