Commit 477b5530 authored by haiyoucuv's avatar haiyoucuv

1

parents 286990ea ff6739b6
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -218,6 +218,7 @@ export class MapScene extends Scene { ...@@ -218,6 +218,7 @@ export class MapScene extends Scene {
const midData = arr; // 剩下的是中间的数据 const midData = arr; // 剩下的是中间的数据
let maxHeight = MapTop.HEIGHT; let maxHeight = MapTop.HEIGHT;
this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题
this.mapContainer.addChild(new MapTop(topData)); this.mapContainer.addChild(new MapTop(topData));
...@@ -234,6 +235,7 @@ export class MapScene extends Scene { ...@@ -234,6 +235,7 @@ export class MapScene extends Scene {
bottom.y = maxHeight; bottom.y = maxHeight;
maxHeight += MapBottom.HEIGHT; maxHeight += MapBottom.HEIGHT;
// this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题 // this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题
this.scrollPage.maxDistance = maxHeight; this.scrollPage.maxDistance = maxHeight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment