-
Creator 版本:2.0.4
-
目标平台:微信
-
重现方式:必现
-
出现概率:必现
使用cc.instantiate创建包含WXSubContextView控件的结点,添加到场景后无法触摸滚动,直接在编辑器里面添加上这个结点就可以正常滚动。
修改的是demo-wechat-subdomain,修改处代码如下:
onClick () {
this._isShow = !this._isShow;
if (this._isShow) {
if(!this.display)
this.display = cc.instantiate(this.displayPrefab);
this.display.parent = this.node;
this.display.runAction(this._show);
}
else {
if(this.display) {
this.display.runAction(this._hide);
}
}
},
修改后的工程:
demo-wechat-subdomain.zip (1.2 MB)