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