From 4b2564baf876fa2d2f5fbd1c2771e9ff2182d913 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Fri, 2 Apr 2021 23:00:36 +0200 Subject: [PATCH] raycaster component onClick --- src/core/Raycaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Raycaster.js b/src/core/Raycaster.js index 47f72d7..f45f0a1 100644 --- a/src/core/Raycaster.js +++ b/src/core/Raycaster.js @@ -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(); });