Skip to content

Commit

Permalink
Merge 8741b8b into 3e019ed
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 authored Aug 21, 2023
2 parents 3e019ed + 8741b8b commit 7596bf8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,13 @@ export function generateTrigger(
useLayoutEffect(
(firstMount) => {
if (!firstMount || mergedOpen) {
if (stretch) {
// delay setting makes it calculate
setTimeout(() => {
setInMotion(true);
}, 0);
return;
}
setInMotion(true);
}
},
Expand Down

0 comments on commit 7596bf8

Please sign in to comment.