1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

raycaster component onClick

This commit is contained in:
Kevin Levron 2021-04-02 23:00:36 +02:00
parent acbcd0fb50
commit 4b2564baf8

View File

@ -8,7 +8,7 @@ export default {
onPointerOver: { type: Function, default: () => {} },
onPointerMove: { type: Function, default: () => {} },
onPointerLeave: { type: Function, default: () => {} },
onPointerClick: { type: Function, default: () => {} },
onClick: { type: Function, default: () => {} },
},
mounted() {
this.rendererComponent.onMounted(() => {
@ -20,7 +20,7 @@ export default {
onIntersectOver: this.onPointerOver,
onIntersectMove: this.onPointerMove,
onIntersectLeave: this.onPointerLeave,
onIntersectClick: this.onPointerClick,
onIntersectClick: this.onClick,
});
this.pointer.addListeners();
});