mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
alter scale
This commit is contained in:
parent
9c0b1811cd
commit
49fd18e9ae
@ -232,7 +232,7 @@
|
|||||||
const scaleY = window.innerHeight / baseHeight;
|
const scaleY = window.innerHeight / baseHeight;
|
||||||
const scale = Math.max(0.9, Math.min(scaleX, scaleY)); // keep aspect ratio, honor minScale
|
const scale = Math.max(0.9, Math.min(scaleX, scaleY)); // keep aspect ratio, honor minScale
|
||||||
const ui = document.getElementById('scale-wrap');
|
const ui = document.getElementById('scale-wrap');
|
||||||
ui.style.transform = `scale(${scale*0.8})`;
|
ui.style.transform = `scale(${scale*0.75})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('resize', applyScale);
|
window.addEventListener('resize', applyScale);
|
||||||
|
Loading…
Reference in New Issue
Block a user