aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.69k stars 3.98k forks source link

Links wrongly traversed with outside click #4835

Open jorgecardoso opened 3 years ago

jorgecardoso commented 3 years ago

Links are traversed even when someone clicks outside the default visual appearance.

Just click on the reticle immediately after loading. Nothing should happen, but it takes you through the link.

<html>
  <head>
    <title>Portals - 01</title>
    <script src="https://aframe.io/releases/1.0.0/aframe.min.js"></script>
  </head>
  <body>
    <a-scene background="color:lightblue">

      <a-link
        position="-2.5 1.6 -4"
        href="/examples/0600-portals-02.html"
        title="Go to second environment"
      ></a-link>

      <a-camera>
        <a-cursor></a-cursor>
      </a-camera>
    </a-scene>

  </body>
</html>
dmarcos commented 3 years ago

You are in an old version. Does it reproduce with 1.2.0?

jorgecardoso commented 3 years ago

You are in an old version. Does it reproduce with 1.2.0?

Yes it does.

It happens since version 1.0.0 (at least). The earlier version that I got it working correctly is 0.8.2

dmarcos commented 3 years ago

Operating system, browser? It happens in 2D mode or VR? Can you create a glitch to reproduce https://glitch.com/~aframe

Thanks!

jorgecardoso commented 3 years ago

I've updated the original issue with more information:

A-Frame Version: since 1.0.0 Platform / Device: Tested on desktop Brave, Chrome, Firefox in Windows 10, 2D mode (also seems to happen in VR mode on desktop, but you need to click closer to the visual appearance). Reproducible Code Snippet or URL: https://expensive-moored-meadow.glitch.me/