virtual sample dialog : fix front view when x views number is odd

This commit is contained in:
isUnknown 2025-07-18 18:15:58 +02:00
parent 2d37915b50
commit ea6395c76d
2 changed files with 1 additions and 3 deletions

View file

@ -60,7 +60,7 @@ const xMax = computed(() =>
)
);
const frontXView = (xMax.value + 1) / 2;
const frontXView = Math.round((xMax.value + 1) / 2);
const currentX = ref(frontXView);
const currentY = ref(0);
const currentFileIndex = computed(() => currentY.value + '_' + currentX.value);