mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
remove onClick (not needed anymore)
This commit is contained in:
parent
fd35878753
commit
fd32163e7d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user