Revert changes to translate3d
This commit is contained in:
parent
68efbf69fa
commit
421989f827
2 changed files with 3 additions and 4 deletions
|
@ -10,10 +10,9 @@ export function usePosition(bounds: TLBounds, rotation = 0) {
|
|||
const elm = rBounds.current!
|
||||
|
||||
const transform = `
|
||||
translate3d(
|
||||
translate(
|
||||
calc(${bounds.minX}px - var(--tl-padding)),
|
||||
calc(${bounds.minY}px - var(--tl-padding)),
|
||||
0px
|
||||
calc(${bounds.minY}px - var(--tl-padding))
|
||||
)
|
||||
rotate(${rotation + (bounds.rotation || 0)}rad)`
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ const tlcss = css`
|
|||
height: 0;
|
||||
width: 0;
|
||||
contain: layout size;
|
||||
transform: scale(var(--tl-zoom)) translate3d(var(--tl-camera-x), var(--tl-camera-y), 0px);
|
||||
transform: scale(var(--tl-zoom)) translate(var(--tl-camera-x), var(--tl-camera-y));
|
||||
}
|
||||
|
||||
.tl-absolute {
|
||||
|
|
Loading…
Reference in a new issue