mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fix follow bug for fireball/issues/7286 (#2682)
This commit is contained in:
@@ -489,7 +489,7 @@ cc.Follow = cc.Class({
|
||||
_this._followedNode = followedNode;
|
||||
_this._worldRect = rect;
|
||||
|
||||
_this._boundarySet = !(rect.x === 0 && rect.y === 0);
|
||||
_this._boundarySet = !(rect.width === 0 && rect.height === 0);
|
||||
|
||||
_this._boundaryFullyCovered = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user