Skip to content

Remove scroll animation when opening calendar#38

Merged
danielchalmers merged 2 commits intomainfrom
copilot/remove-scroll-animation-calendar
Oct 30, 2025
Merged

Remove scroll animation when opening calendar#38
danielchalmers merged 2 commits intomainfrom
copilot/remove-scroll-animation-calendar

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

When navigating to the calendar page, the view animates smoothly to the target month. Changed to scroll instantly on initial render.

Changes

  • Modified ScrollToOpenToDate() to pass smooth: false to ScrollToMonth()
// Before
Task ScrollToOpenToDate() => ScrollToMonth(OpenToDate.Month);

// After  
Task ScrollToOpenToDate() => ScrollToMonth(OpenToDate.Month, smooth: false);

The ScrollToMonth() method already supported instant scrolling via its smooth parameter (defaults to true). Navigation between months after initial render remains animated.

Original prompt

Remove the scroll animation when navigating to the calendar and just scroll to the month instantly


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove scroll animation for calendar navigation Remove scroll animation when opening calendar Oct 30, 2025
Copilot AI requested a review from danielchalmers October 30, 2025 06:36
@danielchalmers danielchalmers marked this pull request as ready for review October 30, 2025 06:44
@danielchalmers danielchalmers merged commit 1a5bb1b into main Oct 30, 2025
@danielchalmers danielchalmers deleted the copilot/remove-scroll-animation-calendar branch October 30, 2025 06:44
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