环境:
win7 64位 creator 1.3.3模拟器
问题:按钮第一次点击没反应,并报错
D:/CocosCreator/resources/cocos2d-x/simulator/win32//src/jsb_polyfill.js:5337:TypeError: touch.getLocation is not a function
第二次点击不报错
衍生问题:这个按钮是负责切换场景的,第二次点击切换场景后模拟器崩溃

代码:
`cc.Class({
extends: cc.Component,
properties: {
},
// use this for initialization
onLoad: function () {
this.node.on("click", this.onButtonClick, this);
},
onButtonClick: function(){
cc.director.preloadScene("hall", function(err, as){
cc.director.loadScene("hall");
})
}
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});`
此场景挂载在按钮上
什么问题呢?
浏览器运行没问题

,就点按钮第一下会这样,应该是模拟器的问题,真机没有问题,可以等你们闲下来再完善吧,浏览器调试也很方便。