fix: hide help buttons on screen too small to click on physical buttons
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user