aframevr / aframevr/aframe

Raycasting mouseleave is fired when ray is still on object

Open
#4,519 5 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

Description:

Live sample: http://netgfx.com/trunk/arns/playground.html

As you see on the gif the cursor is still on the box but the mouse-leave event fires and the color goes back to blue.

I'm using cursor="rayOrigin: mouse" to also track mouse when not on VR Device. If it is not supposed to work with both cursors feel free to close this issue as it would make sense. Or it could disable the "head-cursor" if the mouse on is enabled?

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 by reproducing the behavior from the linked live sample in Chrome with cursor="rayOrigin: mouse", then trace the mouse raycasting and cursor event handling. Done means mouseleave is not emitted while the ray remains on the object, including when mouse and head-cursor behavior coexist.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, 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.