ARnft icon indicating copy to clipboard operation
ARnft copied to clipboard

getMatrixGL_RH- event does not work for me

Open Parisa-DolphinSoft opened this issue 3 years ago • 1 comments

Hi I created a js project with react and three.js and arnft (jsartoolkit). I see some problem in arnft performance (or maybe I did not understand How to use correctly) I hope whenever you find the answer help me. This is my email also : [email protected]

I checked this complete example also : https://github.com/webarkit/ARnft

Problems: 4) getMatrixGL_RH- event does not work for me document.addEventListener('getMatrixGL_RH-' + nft.uuid + '-pinball', function() { console.log('this is pinball!!'); })

Parisa-DolphinSoft avatar Aug 03 '22 08:08 Parisa-DolphinSoft

window.addEventListener works, had the same problem

snmabaur avatar Aug 19 '22 12:08 snmabaur

@Parisa-DolphinSoft Thank you for reporting this, as @snmabaur commented you should use addEventListener attached to the window object. I think you are referring to this example. I will fix this when i have a bit of time.

kalwalt avatar Oct 07 '22 16:10 kalwalt

I fixed the example tell me if it works now.

kalwalt avatar Oct 08 '22 18:10 kalwalt

Thanks by windows it is worked

Parisa-DolphinSoft avatar Nov 01 '22 08:11 Parisa-DolphinSoft