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:
parent
acbcd0fb50
commit
4b2564baf8
@ -8,7 +8,7 @@ export default {
|
|||||||
onPointerOver: { type: Function, default: () => {} },
|
onPointerOver: { type: Function, default: () => {} },
|
||||||
onPointerMove: { type: Function, default: () => {} },
|
onPointerMove: { type: Function, default: () => {} },
|
||||||
onPointerLeave: { type: Function, default: () => {} },
|
onPointerLeave: { type: Function, default: () => {} },
|
||||||
onPointerClick: { type: Function, default: () => {} },
|
onClick: { type: Function, default: () => {} },
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.rendererComponent.onMounted(() => {
|
this.rendererComponent.onMounted(() => {
|
||||||
@ -20,7 +20,7 @@ export default {
|
|||||||
onIntersectOver: this.onPointerOver,
|
onIntersectOver: this.onPointerOver,
|
||||||
onIntersectMove: this.onPointerMove,
|
onIntersectMove: this.onPointerMove,
|
||||||
onIntersectLeave: this.onPointerLeave,
|
onIntersectLeave: this.onPointerLeave,
|
||||||
onIntersectClick: this.onPointerClick,
|
onIntersectClick: this.onClick,
|
||||||
});
|
});
|
||||||
this.pointer.addListeners();
|
this.pointer.addListeners();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user