Skip to content

Commit b7fdf08

Browse files
committed
feat(update): minor changes
1 parent 38fac27 commit b7fdf08

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/src/content/docs/hooks/useDraggable.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,22 @@ export const MyDraggable: FunctionComponent<PropsWithChildren<MyDraggableProps>>
4444
id,
4545
data,
4646
disabled,
47-
delay,
48-
tolerance,
47+
activationDelay,
48+
activationTolerance,
4949
style,
5050
...otherProps
5151
}) => {
52-
const { setNodeRef, setNodeLayout, activeId, offset } = useDraggable({
52+
const { setNodeRef, setNodeLayout, activeId, actingId, offset } = useDraggable({
5353
id,
5454
data,
5555
disabled,
56-
delay,
57-
tolerance,
56+
activationDelay,
57+
activationTolerance,
5858
});
5959

6060
const animatedStyle = useAnimatedStyle(() => {
6161
const isActive = activeId.value === id;
62+
const isResting = actingId.value !== id;
6263
const style = {
6364
opacity: isActive ? 0.9 : 1,
6465
zIndex: isActive ? 999 : 1,

0 commit comments

Comments
 (0)