Fix CCButton _hitTest usage

This commit is contained in:
pandamicro
2016-01-11 10:40:29 +08:00
parent 09fc0d7b0b
commit 93fc5681e9
+1 -1
View File
@@ -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);
}