aframevr / aframevr/aframe

Links wrongly traversed with outside click

Open
#4,835 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

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

  • 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/

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>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked reproduction and inspect how the a-link, a-camera, and a-cursor interaction is handled. Verify the reported reticle click immediately after loading, then confirm that clicks outside the link's visual appearance do not navigate while valid link clicks still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.