mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
0cce540d83
commit
99009be1ca
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ function focusPrevious() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDragOver(elem) {
|
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
|
// if we focus the target element immediately, the drag&drop turns into a
|
||||||
// copy, so note it down for later instead
|
// copy, so note it down for later instead
|
||||||
dropTarget = elem;
|
dropTarget = elem;
|
||||||
|
|
Loading…
Reference in a new issue