fix: hide help buttons on screen too small to click on physical buttons

This commit is contained in:
2026-10-07 13:58:03 +02:00
parent 06b96fe5ba
commit f1ee6922b1
4 changed files with 44 additions and 31 deletions

View File

@@ -95,11 +95,9 @@ const handleTouchEnd = (event: TouchEvent) => {
);
};
const ndsScale = computed(() => {
const scaleX = (windowSize.width.value - 40) / 235;
const scaleY = (windowSize.height.value - 40) / 431;
return Math.min(scaleX, scaleY);
});
const ndsScale = computed(() =>
getNDS2DScale(windowSize.width.value, windowSize.height.value),
);
const gallery = useGalleryStore();
const TOP_SCREEN_OFFSET = 170;