Fix: Update drag-and-drop handling to use 'dragInProgress' flag instead of 'effectAllowed' in InputWaiter and RecipeWaiter

This commit is contained in:
Leon Zandman 2026-03-21 16:38:25 +01:00
parent 2ddc79835e
commit c66ab5a5dd
2 changed files with 4 additions and 4 deletions

View File

@ -988,7 +988,7 @@ class InputWaiter {
*/ */
inputDragover(e) { inputDragover(e) {
// This will be set if we're dragging an operation // This will be set if we're dragging an operation
if (e.dataTransfer.effectAllowed === "move") if (this.manager.recipe.dragInProgress)
return false; return false;
e.stopPropagation(); e.stopPropagation();
@ -1021,7 +1021,7 @@ class InputWaiter {
*/ */
async inputDrop(e) { async inputDrop(e) {
// This will be set if we're dragging an operation // This will be set if we're dragging an operation
if (e.dataTransfer.effectAllowed === "move") if (this.manager.recipe.dragInProgress)
return false; return false;
e.stopPropagation(); e.stopPropagation();

View File

@ -538,7 +538,7 @@ class RecipeWaiter {
*/ */
textArgDragover (e) { textArgDragover (e) {
// This will be set if we're dragging an operation // This will be set if we're dragging an operation
if (e.dataTransfer.effectAllowed === "move") if (this.dragInProgress)
return false; return false;
e.stopPropagation(); e.stopPropagation();
@ -568,7 +568,7 @@ class RecipeWaiter {
*/ */
textArgDrop(e) { textArgDrop(e) {
// This will be set if we're dragging an operation // This will be set if we're dragging an operation
if (e.dataTransfer.effectAllowed === "move") if (this.dragInProgress)
return false; return false;
e.stopPropagation(); e.stopPropagation();