Skip to content

fix: pick active date by scroll direction in resource mode#26

Draft
anton-patrushev wants to merge 1 commit into
fix/shortline-counter-scalefrom
fix/resource-scroll-active-date-direction
Draft

fix: pick active date by scroll direction in resource mode#26
anton-patrushev wants to merge 1 commit into
fix/shortline-counter-scalefrom
fix/resource-scroll-active-date-direction

Conversation

@anton-patrushev

Copy link
Copy Markdown
Owner

Summary

  • Track previous horizontal scroll offset in resource mode and use direction of travel to pick the visible day:
    • forward → latest visible date (existing behaviour)
    • backward → earliest visible date
  • Fixes lag where backward swipes kept reporting the day being scrolled AWAY from until it fully exited the viewport, making custom headers visibly trail the swipe.

Ported from core-mobile patch @howljs+calendar-kit+2.5.6+025+direction-aware-resource-scroll-active-date.

Stacked on top of #25.

Test plan

  • Resource mode, swipe forward; verify active date advances as before.
  • Resource mode, swipe backward; verify active date updates immediately to earliest visible day.
  • Verify haptic feedback still fires on day changes.

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