mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Fix CCButton _hitTest usage
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user