fix: right-click no longer triggers detail window

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-06-01 11:35:13 +09:00
parent e7e6f64410
commit 780b6a9ef5

View File

@@ -67,10 +67,12 @@ export function SortableTaskCard({ task, sectionOptions, onSelect }: { task: Tas
const pointerStart = useRef<{ x: number; y: number } | null>(null);
const handlePointerDown = (e: React.PointerEvent) => {
if (e.button !== 0) return; // 좌클릭만
pointerStart.current = { x: e.clientX, y: e.clientY };
};
const handlePointerUp = (e: React.PointerEvent) => {
if (e.button !== 0) return; // 좌클릭만
if (!pointerStart.current || isDragging) return;
const dx = e.clientX - pointerStart.current.x;
const dy = e.clientY - pointerStart.current.y;