sidebar btn

This commit is contained in:
Kseninia Mikhaylova 2024-09-06 16:54:02 +03:00
parent 1329678fe6
commit 6cbb63b4e8
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ const sidebarFunc = () => {
if (sidebar.is_open) { if (sidebar.is_open) {
sidebar.close() sidebar.close()
} else { } else {
sidebar.open() sidebar.is_open = true
} }
} }

View File

@ -295,7 +295,7 @@ onBeforeRender(() => {
const dis_to_cam = camera.value?.position.distanceTo(el.value[0].position); const dis_to_cam = camera.value?.position.distanceTo(el.value[0].position);
if (dis_to_cam) { if (dis_to_cam) {
const scaling = (0.5 * dis_to_cam) / 100 const scaling = (0.66 * dis_to_cam) / 100
el.value[0].children[0].scale.set(scaling, scaling, scaling); el.value[0].children[0].scale.set(scaling, scaling, scaling);
el.value[0].updateMatrixWorld() el.value[0].updateMatrixWorld()
} }

View File

@ -48,7 +48,7 @@ export const usePromoSidebar = defineStore('promo_sidebar', {
// this.target = undefined; // this.target = undefined;
// this.loading = true; // this.loading = true;
this.is_open = false; this.is_open = false;
this.accordions = []; // this.accordions = [];
} }
}, },
closeBtn() { closeBtn() {