diff --git a/src/components/common/DraggableDialog.vue b/src/components/common/DraggableDialog.vue
index 65310a8..31cc8f6 100644
--- a/src/components/common/DraggableDialog.vue
+++ b/src/components/common/DraggableDialog.vue
@@ -27,7 +27,7 @@
:style="`height: ${props.titleHeight}px;background: ${props.titleColor}`"
>
{{ props.title }}
@@ -113,7 +113,7 @@ function onMouseUp() {
startOffset.y = 0;
}
function onMouseDown(e: MouseEvent) {
- if (headerRef.value?.$el !== e.target) return;
+ if (!e.target || !headerRef.value?.$el.contains(e.target)) return;
startOffset.x = e.offsetX;
startOffset.y = e.offsetY;
start.x = e.clientX - offset.x;