mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
Revert "Revert "workaround for some drags not being accepted""
This reverts commit e91f505847.
Without this change, dragging images from Google searches doesn't work on the
latest Chrome (tested on macOS).
This commit is contained in:
parent
77b5db4d96
commit
bc90c5b997
1 changed files with 3 additions and 0 deletions
|
|
@ -167,6 +167,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue