Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental: Animation reorder keyframes on offset change #4923

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

istarkov
Copy link
Member

@istarkov istarkov commented Feb 27, 2025

Description

image

Steps for reproduction

  1. click button
  2. expect xyz

Code Review

  • hi @kof, I need you to do
    • conceptual review (architecture, feature-correctness)
    • detailed review (read every line)
    • test it on preview

Before requesting a review

  • made a self-review
  • added inline comments where things may be not obvious (the "why", not "what")

Before merging

  • tested locally and on preview environment (preview dev login: 0000)
  • updated test cases document
  • added tests
  • if any new env variables are added, added them to .env file

@istarkov istarkov requested a review from TrySound February 27, 2025 13:31
@istarkov istarkov merged commit 9f0ee54 into main Feb 27, 2025
15 of 17 checks passed
@istarkov istarkov deleted the experimental--Animation-UI-Fixes branch February 27, 2025 19:24
@@ -176,43 +189,97 @@ export const Keyframes = ({
}) => {
const ids = useIds(["addKeyframe"]);

// To preserve focus on children swap
const keyRefs = useRef(
Array.from({ length: keyframes.length }, (_, index) => index)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting one, I never thought one can make array like this vs Array.from(new Array(keyframes.length))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants