vue2 版本@mousemove="onMouseMove" 事件不起作用
Jetter-li opened this issue · comments
Jetter-li commented
onMouseMove(event, intersected) {
debugger
if (this.object) {
this.object.material.color.setStyle("#fff");
}
if (intersected) {
this.object = intersected.object;
this.object.material.color.setStyle("#13ce66");
}
},
参考这个例子,intersected一直为空,怎么解决这个问题呢?
Jetter-li commented
好的,谢谢,加上 :intersectRecursive="true" 参数可以用了