mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #2364 from fusijie/fixed_scrollView_bug
fixed scrollView bug.
This commit is contained in:
@@ -2178,8 +2178,8 @@ var Node = cc.Class({
|
||||
math.mat4.invert(_mat4_temp, this._worldMatrix);
|
||||
let out = new cc.Vec2();
|
||||
math.vec2.transformMat4(out, worldPoint, _mat4_temp);
|
||||
out.x -= this._anchorPoint.x * this._contentSize.width;
|
||||
out.y -= this._anchorPoint.y * this._contentSize.height;
|
||||
out.x += this._anchorPoint.x * this._contentSize.width;
|
||||
out.y += this._anchorPoint.y * this._contentSize.height;
|
||||
return out;
|
||||
},
|
||||
|
||||
|
||||
@@ -139,6 +139,7 @@ var Scrollbar = cc.Class({
|
||||
_setOpacity: function(opacity) {
|
||||
if (this.handle) {
|
||||
this.node.setOpacity(opacity);
|
||||
this.handle.node.setOpacity(opacity);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user