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;
}}
onDragEnd={() => {
// Delay clearing so onClick can check it
setTimeout(() => {
isDragging.current = false;
}, 0);
onDragEnd?.();
}}
whileDrag={{
scale: 1.02,
boxShadow: "0 4px 12px rgba(0,0,0,0.1)",
cursor: "grabbing",
}}
whileDrag={{ cursor: "grabbing" }}
style={{ marginBottom: 8, cursor: "grab" }}
className={sharedClassName}
>