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

fix(animation): fix issues when navigating months during animation #2710

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rodgobbi
Copy link
Collaborator

@rodgobbi rodgobbi commented Mar 11, 2025

This PR fixes DayPicker minor bugs caused when trying to navigate months while animating the month transition.
In the same PR, improve tests and refactor useAnimation implementation.

Issues:

  • Navigation month buttons are not clickable during animation.
  • Navigating months during animation causes visual bug in the animation of the next month transition.

The videos below compare the DayPicker before and after the fix, running the animation at 25% the default speed.

Before

Multi.click.issues.mov

After

Multi.click.fixed.mov

@rodgobbi rodgobbi requested a review from gpbl March 15, 2025 21:08
@rodgobbi rodgobbi marked this pull request as ready for review March 15, 2025 21:10
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.

1 participant