Skip to content

Commit

Permalink
Revert "fix(Html): use transform for perspective browser issues (#1695)"
Browse files Browse the repository at this point in the history
This reverts commit d34816a.
  • Loading branch information
CodyJasonBennett authored Nov 16, 2023
1 parent c000f72 commit 430c1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/Html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.transform = isOrthographicCamera ? '' : `perspective(${fov}px)`
el.style.perspective = isOrthographicCamera ? '' : `${fov}px`
if (transformOuterRef.current && transformInnerRef.current) {
transformOuterRef.current.style.transform = `${cameraTransform}${cameraMatrix}translate(${widthHalf}px,${heightHalf}px)`
transformInnerRef.current.style.transform = getObjectCSSMatrix(matrix, 1 / ((distanceFactor || 10) / 400))
Expand Down

0 comments on commit 430c1bf

Please sign in to comment.