fix(2d-nds): zoom more on the nds
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
const ndsScale = ref(1);
|
const ndsScale = ref(1);
|
||||||
|
|
||||||
const updateScale = () => {
|
const updateScale = () => {
|
||||||
const scaleX = (window.innerWidth - 40) / 280;
|
const scaleX = (window.innerWidth - 40) / 235;
|
||||||
const scaleY = (window.innerHeight - 40) / 431;
|
const scaleY = (window.innerHeight - 40) / 431;
|
||||||
ndsScale.value = Math.min(scaleX, scaleY);
|
ndsScale.value = Math.min(scaleX, scaleY);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user