Fix: Update drag-and-drop handling to use 'dragInProgress' flag instead of 'effectAllowed' in InputWaiter and RecipeWaiter
This commit is contained in:
parent
2ddc79835e
commit
c66ab5a5dd
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user