mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Add event touch api doc for touch property
This commit is contained in:
@@ -330,7 +330,13 @@ var EventTouch = function (touchArr, bubbles) {
|
||||
cc.Event.call(this, cc.Event.TOUCH, bubbles);
|
||||
this._eventCode = 0;
|
||||
this._touches = touchArr || [];
|
||||
this.currentTouch = null;
|
||||
/**
|
||||
* !#en The current touch object
|
||||
* !#zh 当前触点对象
|
||||
* @property touch
|
||||
* @type {Touch}
|
||||
*/
|
||||
this.touch = null;
|
||||
};
|
||||
|
||||
JS.extend(EventTouch, cc.Event);
|
||||
|
||||
Reference in New Issue
Block a user