fix: remove scale/shadow whileDrag effect that stuck after release

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-03 18:50:49 +02:00
parent f8a1a00e0a
commit 33f735af67

View File

@@ -220,17 +220,12 @@ export function CandidateListItem({
isDragging.current = true; isDragging.current = true;
}} }}
onDragEnd={() => { onDragEnd={() => {
// Delay clearing so onClick can check it
setTimeout(() => { setTimeout(() => {
isDragging.current = false; isDragging.current = false;
}, 0); }, 0);
onDragEnd?.(); onDragEnd?.();
}} }}
whileDrag={{ whileDrag={{ cursor: "grabbing" }}
scale: 1.02,
boxShadow: "0 4px 12px rgba(0,0,0,0.1)",
cursor: "grabbing",
}}
style={{ marginBottom: 8, cursor: "grab" }} style={{ marginBottom: 8, cursor: "grab" }}
className={sharedClassName} className={sharedClassName}
> >