-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Html): use transform for perspective browser issues #1695
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 73aebf7:
|
@@ -341,7 +341,7 @@ export const Html: ForwardRefComponent<HtmlProps, HTMLDivElement> = /* @__PURE__ | |||
} | |||
el.style.width = size.width + 'px' | |||
el.style.height = size.height + 'px' | |||
el.style.perspective = isOrthographicCamera ? '' : `${fov}px` | |||
el.style.transform = isOrthographicCamera ? '' : `perspective(${fov}px)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be the first transform on "transformOuterRef" below, rather than a transform on "el", I believe.
🎉 This PR is included in version 9.88.15 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This reverts commit d34816a.
Hey, @drcmda, this wasn't supposed to be merged. Maybe I should have converted into a draft but I needed to investigate @donmccurdy's review further. |
Fixes #428, mirrors mrdoob/three.js#27017.