feat: Add expand/collapse button functionality and improve drag event handling

This commit is contained in:
Will Miao
2025-08-22 16:51:55 +08:00
parent 383b4de539
commit ec3f857ef1
3 changed files with 114 additions and 47 deletions

View File

@@ -120,7 +120,9 @@ export function initDrag(dragEl, name, widget, isClipStrength = false, previewTo
// Skip if clicking on toggle or strength control areas
if (e.target.closest('.comfy-lora-toggle') ||
e.target.closest('input') ||
e.target.closest('.comfy-lora-arrow')) {
e.target.closest('.comfy-lora-arrow') ||
e.target.closest('.comfy-lora-drag-handle') ||
e.target.closest('.comfy-lora-expand-button')) {
return;
}