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) {
|
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();
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user