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

Add inner component scroll in the compose module #602

Merged
merged 11 commits into from
Jan 18, 2025

Conversation

kizitonwose
Copy link
Owner

The following methods are now available in the compose module:

Month calendar:

  • scrollToDate
  • scrollToDay
  • animateScrollToDate
  • animateScrollToDay

Week calendar:

  • scrollToDate
  • scrollToDay
  • animateScrollToDate
  • animateScrollToDay

Year calendar:

  • scrollToDate
  • scrollToDay
  • scrollToMonth
  • animateScrollToDate
  • animateScrollToDay
  • animateScrollToMonth

Note that unlike the view system which allows offset calculation when the scroll target index becomes visible on the screen, compose forces you to provide the desired scroll offset for the target index before initiating the scroll. Therefore, the current implementation assumes equally sized headers and footers to be able to calculate the day offset in the target index.

@kizitonwose kizitonwose force-pushed the ft_compose_scroll_to_day branch from 684852f to 50cb83d Compare January 18, 2025 22:19
@kizitonwose kizitonwose force-pushed the ft_compose_scroll_to_day branch from 50cb83d to 9d73b7f Compare January 18, 2025 22:31
@kizitonwose kizitonwose merged commit dd4d54a into main Jan 18, 2025
6 checks passed
@kizitonwose kizitonwose deleted the ft_compose_scroll_to_day branch January 18, 2025 23:02
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