virtual sample dialog : fix front view when x views number is odd
This commit is contained in:
parent
2d37915b50
commit
ea6395c76d
2 changed files with 1 additions and 3 deletions
|
|
@ -51,8 +51,6 @@ const { images, step, uri } = defineProps({
|
|||
uri: String,
|
||||
});
|
||||
|
||||
console.log(images);
|
||||
|
||||
const { isDesignToLightStep } = useDesignToLightStore();
|
||||
|
||||
const commentsCount = computed(() => {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue