Skip to content

Commit

Permalink
Set based on for drag-and-drop in the viewer (issue 14942). See https…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pldi23 committed May 22, 2022
1 parent 96b125f commit 066721c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2187,7 +2187,11 @@ function webViewerInitialized() {
appConfig.mainContainer.addEventListener("dragover", function (evt) {
evt.preventDefault();

evt.dataTransfer.dropEffect = "move";
evt.dataTransfer.dropEffect =
evt.dataTransfer.effectAllowed === "all" ||
evt.dataTransfer.effectAllowed === "uninitialized"
? "move"
: evt.dataTransfer.effectAllowed;
});
appConfig.mainContainer.addEventListener("drop", function (evt) {
evt.preventDefault();
Expand Down

0 comments on commit 066721c

Please sign in to comment.