浏览代码

#2204 restore mapitem position when scale back to zoom_detaille 1

bach 2 月之前
父节点
当前提交
fe55f6dbf9
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      src/components/ConcernementMapItem.vue
  2. 1 1
      src/components/contents/TerrainDeVie.vue

+ 1 - 0
src/components/ConcernementMapItem.vue

@@ -739,6 +739,7 @@ export default {
         this.body.collisionFilter.mask = 0x0004;
       } else {
         this.body.collisionFilter.mask = 0x0001;
+        this.resetMapItemPosition();
       }
     },
     /*

+ 1 - 1
src/components/contents/TerrainDeVie.vue

@@ -29,7 +29,7 @@ export default {
       entite: null,
       history_value: 0,
       history_slider_ops: null,
-      details_value: 0,
+      details_value: 1,
       details_slider_ops: null,
       infos_opened: false,
       chevronright_path: mdiChevronRight,