limit max scale to 1
This commit is contained in:
@@ -55,7 +55,8 @@
|
||||
const widthScale = width / frameDimension.width;
|
||||
const heightScale = height / frameDimension.height;
|
||||
el.style.transform =
|
||||
`scale(${Math.min(widthScale, heightScale)})` + 'translate(-50%, -50%)';
|
||||
`scale(${Math.min(widthScale, heightScale, 1)})` +
|
||||
'translate(-50%, -50%)';
|
||||
};
|
||||
|
||||
export const triggerResize = () => {
|
||||
|
||||
Reference in New Issue
Block a user