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

View File

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