Skip to content

Conversation

@Gitsaibot
Copy link
Contributor

@Gitsaibot Gitsaibot commented Jan 1, 2026

  1. Increase WEEKS_BUFFER to 6 to load additional weeks around the visible area in the monthly view.
  2. Add onScroll method to load events without removing your finger from the display
  3. Removal of the delay in the onScrollStateChanged method so that events are displayed immediately when you remove your finger from the display.

Fix #2016

Comment on lines 489 to 490
mHandler.removeCallbacks(mUpdateLoader);
mHandler.postDelayed(mUpdateLoader, LOADER_DELAY);
Copy link
Member

Choose a reason for hiding this comment

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

This is the same as the else case from onScrollStateChanged but you are deleting the if case there, can you give a reason why?

Copy link
Member

Choose a reason for hiding this comment

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

can you comment here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The onScroll method has no idle state. It is triggered continuously as long as the user scrolls.

Copy link
Member

Choose a reason for hiding this comment

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

ok, let me put it differently: why can we drop the stopLoader() call in line 490 then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This must be removed because otherwise the onScroll method will not work. I want the loader to be executed when scrolling. Or, conversely, it should be possible to reinsert mUpdateLoader into the handler queue in the onScroll method.

@Gitsaibot Gitsaibot force-pushed the eventLoading branch 3 times, most recently from 9ede086 to f85e593 Compare January 2, 2026 17:11
Increase WEEKS_BUFFER to 6 to load additional weeks around the visible area in the monthly view.

Add onScroll method to load events without removing your finger from the display

Removal of the delay in the onScrollStateChanged method so that events are displayed immediately when you remove your finger from the display.
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.

When scrolling in month view, events only appear once finger is lifted from screen

2 participants