Skip to content

Commit bb189c7

Browse files
committed
fix(android): do not double-spring when acting back to position
1 parent 7d7c523 commit bb189c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Draggable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ export const Draggable: FunctionComponent<PropsWithChildren<DraggableProps>> = (
6363
{
6464
// translateX: offset.x.value,
6565
translateX:
66-
isActive || isSleeping
66+
isActive || isSleeping || isActing
6767
? offset.x.value
6868
: withSpring(offset.x.value, { damping: 100, stiffness: 1000 }),
6969
},
7070
{
7171
// translateY: offset.y.value,
7272
translateY:
73-
isActive || isSleeping
73+
isActive || isSleeping || isActing
7474
? offset.y.value
7575
: withSpring(offset.y.value, { damping: 100, stiffness: 1000 }),
7676
},

0 commit comments

Comments
 (0)