Skip to content

Add fling momentum to calendar view scrolling - #512

Merged
Razeeman merged 1 commit into
Razeeman:devfrom
adharsh:feat/calendar-scroll-momentum
Nov 1, 2026
Merged

Razeeman merged 1 commit into
Razeeman:devfrom
adharsh:feat/calendar-scroll-momentum

Conversation

@adharsh

@adharsh adharsh commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Scrolling the zoomed-in calendar view currently stops the moment the finger is lifted. This adds fling momentum, so it keeps gliding and slows down naturally, like regular lists.

This makes it much easier to scroll through events, since you no longer have to drag in short strokes to get through the day.

Touching the calendar or starting a pinch stops the fling. Other views using SwipeDetector are unchanged.

Testing:

  • Built the playRelease APK; ktlint passed for the changed modules.
  • Installed on a physical Android device for manual testing.

Scrolling a zoomed in calendar view stopped as soon as the finger was
lifted. It now keeps scrolling with momentum after a fling, like
regular lists. Touching the calendar or starting a pinch stops the
fling, and a touch that stops a fling doesn't click or long click a
record. A gesture that includes a pinch doesn't fling, since the
finger speed then comes from zooming.
@Razeeman

Razeeman commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Very cool addition, thank you very much!

@Razeeman
Razeeman merged commit f2b62f9 into Razeeman:dev Nov 1, 2026
1 check passed
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