Commit 93d63bff authored by zjz1994's avatar zjz1994

调整map稍微靠下时底部黑边问题

parent 4ed37812
......@@ -555,7 +555,7 @@ export default class MapScene extends Scene {
}
// 如果是尾部
if (lastOrder > window['total_level'] - MapBottomPart.LEVEL_NUMS) {
if (lastOrder >= (window['total_level'] - MapBottomPart.LEVEL_NUMS-1)) {
return this.getScrollV2(lastOrder, stageHeight);
}
......@@ -587,6 +587,9 @@ export default class MapScene extends Scene {
getScrollV2(lastOrder, stageHeight) {
const y0 = this._data.bottom.y;
lastOrder = lastOrder - this._data.list.length * MapRpeatPart.LEVEL_NUMS - 7;
if(lastOrder<1){
lastOrder = 1;
}
const totalHeight = this._data.top.height +
(this._data.list.length * this._data.list[0].height)
+ this._data.bottom.height;
......
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