mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-25 14:25:44 -03:00
Fix: Restore drag-and-drop in layers panel
This commit is contained in:
@@ -285,8 +285,6 @@ export class CanvasLayersPanel {
|
|||||||
if (nameElement && nameElement.classList.contains('editing')) {
|
if (nameElement && nameElement.classList.contains('editing')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Prevent the layers panel from stealing focus
|
|
||||||
e.preventDefault();
|
|
||||||
this.handleLayerClick(e, layer, index);
|
this.handleLayerClick(e, layer, index);
|
||||||
});
|
});
|
||||||
// --- PRAWY PRZYCISK: ODJAZNACZ LAYER ---
|
// --- PRAWY PRZYCISK: ODJAZNACZ LAYER ---
|
||||||
|
|||||||
@@ -336,8 +336,6 @@ export class CanvasLayersPanel {
|
|||||||
if (nameElement && nameElement.classList.contains('editing')) {
|
if (nameElement && nameElement.classList.contains('editing')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Prevent the layers panel from stealing focus
|
|
||||||
e.preventDefault();
|
|
||||||
this.handleLayerClick(e, layer, index);
|
this.handleLayerClick(e, layer, index);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user