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

@ -51,8 +51,6 @@ const { images, step, uri } = defineProps({
uri: String, uri: String,
}); });
console.log(images);
const { isDesignToLightStep } = useDesignToLightStore(); const { isDesignToLightStep } = useDesignToLightStore();
const commentsCount = computed(() => { const commentsCount = computed(() => {

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 currentX = ref(frontXView);
const currentY = ref(0); const currentY = ref(0);
const currentFileIndex = computed(() => currentY.value + '_' + currentX.value); const currentFileIndex = computed(() => currentY.value + '_' + currentX.value);