这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@poppingmoon
Copy link
Owner

Changed scroll behavior of when the "last viewed at" banner is tapped.

  • If the divider is already built (or inside the screen), jump to it.
  • If the oldest note in TimelineNotesNotifier is older than the last viewed date, repeatedly scroll for small offsets to find the divider.
  • Otherwise, change the centerId and jump to the date.

We want to avoid the third case because fetching notes created after a date sometimes requires multiple requests.
So increased the number of notes fetched on build to make it more likely to be caught in the second case.

@poppingmoon poppingmoon merged commit b6d7944 into main Apr 28, 2024
@poppingmoon poppingmoon deleted the scroll-timeline branch April 28, 2024 09:39
@poppingmoon poppingmoon mentioned this pull request Apr 29, 2024
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