Commit d05bf343 authored by Lwd's avatar Lwd

commit

parent eeebc9b0
......@@ -4865,4 +4865,4 @@
"_atlas": null,
"_id": "9c32UJ8npPT5bPpyfhEDX6"
}
]
]
\ No newline at end of file
......@@ -92,8 +92,8 @@ var game = cc.Class({
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
let svBBoxRect = cc.rect(
svLeftBottomPoint.x - node.anchorX * node.width / 2,
svLeftBottomPoint.y - node.anchorY * node.height / 2,
svLeftBottomPoint.x,
svLeftBottomPoint.y,
node.width,
node.height
);
......
......@@ -110,8 +110,8 @@ cc.Class({
// 获取 ScrollView Node 的左下角坐标在世界坐标系中的坐标
let svLeftBottomPoint = this.node.parent.convertToWorldSpaceAR(
cc.v2(
this.node.x - this.node.anchorX * this.node.width,
this.node.y - this.node.anchorY * this.node.height
this.node.x,
this.node.y
)
);
......
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