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:
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user