Scaling animation cannot handle negative numbers
Open
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
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
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