aframevr / aframevr/aframe

Scaling animation cannot handle negative numbers

Open
#4,490 3 comments 1 reaction 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:
Attempting to scale to -1 from 1 only completes till 0.001 and stops there.
Potential duplicate of #4263 but now with example code.

  • A-Frame Version: >1.0.0
  • Platform / Device: Win10/Firefox 73.0.1
  • Reproducible Code Snippet or URL: https://judicious-morocco-9avsv2b5p.glitch.me/scaleAnimBug.html
    Click once to reveal letter 'E' made out of blocks
    Click second time to attempt scale to -1 1 1
    Expected result: A mirrored 'E'.
    Actual result: Thin sliver with scale.x = 0.001

Thanks.

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

Reproduce the issue with the linked Glitch example: reveal the blocks, then attempt to scale from 1 to -1 on the x axis. Trace the scaling animation entry point responsible for stopping at 0.001, and verify that completion produces the expected mirrored E rather than a thin sliver.

Written by the indexing model from the issue text.

Assessment

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