From fd32163e7d09a1ee9b477952e020bfb832230245 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Tue, 11 May 2021 21:00:20 +0200 Subject: [PATCH] remove onClick (not needed anymore) --- src/core/Renderer.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/Renderer.ts b/src/core/Renderer.ts index d6fcf37..3142cf2 100644 --- a/src/core/Renderer.ts +++ b/src/core/Renderer.ts @@ -112,7 +112,6 @@ export default defineComponent({ xr: Boolean, props: { type: Object, default: () => ({}) }, onReady: Function as PropType<(r: RendererInterface) => void>, - onClick: Function as PropType<(this: HTMLCanvasElement, ev: MouseEvent) => any>, }, inheritAttrs: false, setup(props, { attrs }): RendererSetupInterface { @@ -150,11 +149,6 @@ export default defineComponent({ const renderFn: {(): void} = () => {} - // we have to handle canvas events ourself (it is not rendered by vue) - if (props.onClick) { - canvas.addEventListener('click', props.onClick) - } - return { canvas, three,