mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05:00
Revert "Revert "workaround for some drags not being accepted""
This reverts commit e7046ba398.
Without this change, dragging images from Google searches doesn't work on the
latest Chrome (tested on macOS).
This commit is contained in:
parent
88de6b5075
commit
cb68be7a1b
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