div.addEventListener(“click”,otherscript.function);
I just add the event listener on button and its a css2drenderer.So when i click this it didnt show me anything .Is there anyway to handle this?
Does otherscript.function work, if you call it not in the event listener?
Does it show something in the console if you do div.addEventListener(“click”, event => {console.log("event fired")});?
Any chance to provide a minimal live code working example that demonstrates the issue (codepen, codesandbox etc.)? Not specifically for me, but for the others, who would like to help.
You are right but can you please tell why its not working with webgl renderer I’m actually add the label renderer in orbitcontrol .When I load the screen then orbit control doesn’t work but once i click on model then label apply and addlistener and orbit control works. This issue I’m facing