From 36e964f747beeea2ce3479b6881827d545e1d15b Mon Sep 17 00:00:00 2001 From: Knox Date: Tue, 15 May 2018 14:49:35 +0800 Subject: [PATCH] fix follow bug for fireball/issues/7286 (#2682) --- cocos2d/actions/CCAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/actions/CCAction.js b/cocos2d/actions/CCAction.js index fcbe670d6e..58faa8bf6e 100644 --- a/cocos2d/actions/CCAction.js +++ b/cocos2d/actions/CCAction.js @@ -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;