Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

217
Vistas
A-FRAME - The click of my cursor triggers the event of the portal even if it does not point on it

I am doing an a-frame VR project where I need to make "portals" that are useful for the user to move from one room to another. My problem is that I use a cursor for the click event, but it trigger the portal event even if there is a huge gap between the cursor and the portal.

I am using a js.script that you can find here : https://github.com/stemkoski/A-Frame-Examples/blob/master/js/link-controls.js

There is my portal :

<a-link position="0 1.6 -14" rotation="0 0 0"
href="paris.html" title="Paris" image="#photoparis"></a-link>

As for my cursor, I just did a normal cursor inside the a-camera tag.

See there, an example of the gap between cursor and portal.

Can someone help me to understand why there is this problem ? I would like to specify that when I use only the cursor of my mouse there is not this problem and it is necessary that I click precisely on the portal so that the event is activated.

Thanks you in advance for your answers, and don't hesitate to tell me if there is something that I have poorly explained. Also, pardon me if I have made english mistake.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda