jeromeetienne / AR.js

Efficient Augmented Reality for the Web - 60fps on mobile!
MIT License
15.8k stars 2.22k forks source link

Click events not returning properly on AR.JS objects #349

Closed ChanceTheMaker closed 6 years ago

ChanceTheMaker commented 6 years ago

Do you want to request a feature or report a bug? Bug

What is the current behavior? When clicking on an entity (object) with a cursor, no id returns to the event listener, producing no behavior. If the current behavior is a bug, please provide the steps to reproduce. Click the link below, point camera to a Hiro marker and try LMB while gazing at the AR object (an orange).

https://lookit.io/webar/ARJS/AO/scenes/ar_test.html

What is the expected behavior? The object should be detected (return an event.target.id) and should scale up.

*Note: The object does spin when the cursor is over the object (so events are working to some degree), using begin="mouseenter", but click does not.

If this is a feature request, what is motivation or use case for changing the behavior? No. Please mention other relevant information such as the browser version, Operating System and Device Name OS: Win10 Device: Desktop Browser: Chrome 66.0.3359.139

nicolocarpignoli commented 6 years ago

Although you mark it as bug, this is a feature that has to be implemented

see https://github.com/jeromeetienne/AR.js/issues/328 and https://github.com/jeromeetienne/AR.js/issues/335

nicolocarpignoli commented 6 years ago

try looking at :

https://medium.com/chialab-open-source/how-to-handle-click-events-on-ar-js-58fcacb77c4

ChanceTheMaker commented 6 years ago

Did you just post that today?

Thanks!

On Wed, Aug 8, 2018 at 1:50 AM, Nicolò Carpignoli notifications@github.com wrote:

try looking at :

https://medium.com/chialab-open-source/how-to-handle- click-events-on-ar-js-58fcacb77c4

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeromeetienne/AR.js/issues/349#issuecomment-411334757, or mute the thread https://github.com/notifications/unsubscribe-auth/AAczCN2MorEMirFNCGRFAe8Eb6WNRHQwks5uOqZZgaJpZM4UCPO_ .