From 93fc5681e9bb8d1c53aec9fc6815ee77faaf04da Mon Sep 17 00:00:00 2001 From: pandamicro Date: Mon, 11 Jan 2016 10:40:29 +0800 Subject: [PATCH] Fix CCButton _hitTest usage --- cocos2d/core/components/CCButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/components/CCButton.js b/cocos2d/core/components/CCButton.js index 3677eb3d9c..e29339ab07 100644 --- a/cocos2d/core/components/CCButton.js +++ b/cocos2d/core/components/CCButton.js @@ -386,7 +386,7 @@ var Button = cc.Class({ _onTouchMove: function (event) { var touch = event.touch; - var hit = this._hitTest(touch.getLocation()); + var hit = this.node._hitTest(touch.getLocation()); if (hit && this._pressed) { this._applyState(ButtonState.Pressed); }