switch from css zoom to transform-scale
This commit is contained in:
parent
3b050073ed
commit
2c010a9a32
6 changed files with 11 additions and 9 deletions
|
|
@ -274,9 +274,9 @@ const resize = () => {
|
|||
|
||||
const scale = Math.min(widthZoomPercent, heightZoomPercent);
|
||||
if (scale < 1.0 || document.fullscreenElement) {
|
||||
document.querySelector('#container').style.zoom = scale;
|
||||
document.querySelector('#container').style.transform = `scale(${scale})`;
|
||||
} else {
|
||||
document.querySelector('#container').style.zoom = 1;
|
||||
document.querySelector('#container').style.transform = 'unset';
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue