Raycasting mouseleave is fired when ray is still on object
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
- A-Frame Version: 1.0.3
- Platform / Device: Chrome/Windows
- Reproducible Code Snippet or URL: https://gifyu.com/image/IiVH
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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