Skip to content

Commit

Permalink
Ignore delay in layout animation options when instant animation flag …
Browse files Browse the repository at this point in the history
…is set
  • Loading branch information
shuangq committed Jun 29, 2023
1 parent cd676af commit 1d753ad
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ export const animateMotionValue = (
* If we can't animate this value, or the global instant animation flag is set,
* or this is simply defined as an instant transition, return an instant transition.
*/
return createInstantAnimation(options)
return createInstantAnimation(
instantAnimationState.current
? { ...options, delay: 0 }
: options
)
}

/**
Expand Down

0 comments on commit 1d753ad

Please sign in to comment.