Skip to content

Commit

Permalink
fix: fix translateZ prop
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Mar 19, 2021
1 parent 49c3518 commit ecc43b2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class MoveableManager<T = {}>
checkInput: false,
groupable: false,
cspNonce: "",
translateZ: 50,
translateZ: 0,
cssStyled: null,
customStyledMap: {},
props: {},
Expand Down Expand Up @@ -115,8 +115,8 @@ export default class MoveableManager<T = {}>
style={{
"position": "absolute",
"display": isDisplay ? "block" : "none",
"transform": `translate3d(${left - parentLeft}px, ${top - parentTop}px, 0)`,
"--zoom": zoom,
"transform": `translate3d(${left - parentLeft}px, ${top - parentTop}px, ${translateZ})`,
"--zoom": zoom,
"--zoompx": `${zoom}px`,
}}>
{this.renderAbles()}
Expand Down

0 comments on commit ecc43b2

Please sign in to comment.