怎么解决的, 打开多点触摸?
脚本 CCEventManager.js
在2个 if 判断后面添加 eventManager._currentTouchListener.swallowTouches 条件
修改如下
if (!cc.macro.ENABLE_MULTI_TOUCH && eventManager._currentTouch && eventManager._currentTouchListener.swallowTouches) {
if (!cc.macro.ENABLE_MULTI_TOUCH && eventManager._currentTouch && eventManager._currentTouch !== selTouch && eventManager._currentTouchListener.swallowTouches) {
在脚本 CCButton.js
给3个 event.stopPropagation(); 的地方增加 if 判断
修改如下:
if (!this.node._touchListener || this.node._touchListener.swallowTouches) {
event.stopPropagation();
}
然后重新编译引擎
(帖子被作者删除,如无标记将在 24 小时后自动删除)