Closed KaiVolland closed 4 months ago
This updates the mousePostion check for the transform-origin calculation.
In some rare cases, e.g. in a TestEnvironment (react-testing-library with Jest) the mousePosition can look like this:
{ x: undefined, y : undefined }
which leads to transform-origin: NaNpx NaNpx; in the element itself.
transform-origin: NaNpx NaNpx;
This check fixes this issue.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
This updates the mousePostion check for the transform-origin calculation.
In some rare cases, e.g. in a TestEnvironment (react-testing-library with Jest) the mousePosition can look like this:
which leads to
transform-origin: NaNpx NaNpx;
in the element itself.This check fixes this issue.