mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
refine code
This commit is contained in:
@@ -547,6 +547,7 @@ var inputManager = {
|
||||
onTouchCancel: _touchEventsMap.touchcancel,
|
||||
};
|
||||
registerTouchEvent = function(eventName) {
|
||||
var handler = _touchEventsMap[eventName];
|
||||
wx[eventName](function(event) {
|
||||
if (!event.changedTouches) return;
|
||||
var pos = selfPointer.getHTMLElementPosition(element);
|
||||
|
||||
Reference in New Issue
Block a user