Commit d05bf343 authored by Lwd's avatar Lwd

commit

parent eeebc9b0
...@@ -92,8 +92,8 @@ var game = cc.Class({ ...@@ -92,8 +92,8 @@ var game = cc.Class({
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒) // 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
let svBBoxRect = cc.rect( let svBBoxRect = cc.rect(
svLeftBottomPoint.x - node.anchorX * node.width / 2, svLeftBottomPoint.x,
svLeftBottomPoint.y - node.anchorY * node.height / 2, svLeftBottomPoint.y,
node.width, node.width,
node.height node.height
); );
......
...@@ -110,8 +110,8 @@ cc.Class({ ...@@ -110,8 +110,8 @@ cc.Class({
// 获取 ScrollView Node 的左下角坐标在世界坐标系中的坐标 // 获取 ScrollView Node 的左下角坐标在世界坐标系中的坐标
let svLeftBottomPoint = this.node.parent.convertToWorldSpaceAR( let svLeftBottomPoint = this.node.parent.convertToWorldSpaceAR(
cc.v2( cc.v2(
this.node.x - this.node.anchorX * this.node.width, this.node.x,
this.node.y - this.node.anchorY * this.node.height 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