fix follow bug for fireball/issues/7286 (#2682)

This commit is contained in:
Knox
2018-05-15 14:49:35 +08:00
committed by pandamicro
parent 8ba1cd29db
commit 36e964f747
+1 -1
View File
@@ -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;