diff --git a/components/Editor.js b/components/Editor.js index 4af47fe..9ae452a 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -108,10 +108,12 @@ class Editor extends React.Component { const width = node.offsetWidth * exportSize const height = squared ? node.offsetWidth * exportSize : node.offsetHeight * exportSize + const transformOrigin = window.navigator.userAgent.indexOf('Safari') !== -1 ? '0 50%' : 'center' + const config = { style: { transform: `scale(${exportSize})`, - 'transform-origin': 'center', + 'transform-origin': transformOrigin, background: squared ? this.state.backgroundColor : 'none', }, filter: n => {