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:
Damien Elmes 2018-05-01 13:24:08 +10:00
parent 77b5db4d96
commit bc90c5b997

View file

@ -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;