Skip to content

Animation end fix#227

Open
ameerf-wix wants to merge 10 commits into
masterfrom
animation-end-fix
Open

Animation end fix#227
ameerf-wix wants to merge 10 commits into
masterfrom
animation-end-fix

Conversation

@ameerf-wix
Copy link
Copy Markdown
Contributor

Description

Related Issue

Checklist

  • I have read the Contributing Guide
  • I have added/updated tests for my changes (if applicable)
  • I have updated documentation/rules/skills (if applicable)

Screenshots / Demos

Additional Notes

@ydaniv ydaniv closed this May 26, 2026
@ydaniv ydaniv reopened this May 26, 2026
Comment thread packages/interact/src/handlers/animationEnd.ts Outdated
)?.animations;

if (sourceGroup && sourceGroup.length) {
if (sourceGroup.some((a: Animation) => a.playState === 'running')) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We already have AnimationGroup.playState which checks animations[0].playState. If this is too simple we can change the implementation, but better move the logic into AnimationGroup

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed AnimationGroup.playState to return running if any of the animations within has this playState and otherwise fallback to old impl (taking animations[0].playState) - do you think more logic is needed?

Comment thread packages/interact/src/handlers/animationEnd.ts Outdated
Comment thread packages/interact/src/handlers/animationEnd.ts Outdated
Comment thread packages/interact/test/mini.spec.ts
@ameerf-wix ameerf-wix requested a review from ydaniv May 27, 2026 14:15
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.

2 participants