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

Agenda view scrolls to top while loading events #7576

Open
armhub opened this issue Sep 17, 2024 · 2 comments
Open

Agenda view scrolls to top while loading events #7576

armhub opened this issue Sep 17, 2024 · 2 comments
Labels
bug broken functionality, usability problems, unexpected errors topic: calendar

Comments

@armhub
Copy link
Contributor

armhub commented Sep 17, 2024

When viewing the agenda view while events are processed after logging in, the event list steadily jumps to the top again when scrolled down. This is visible on mobile with long lists of events.

How to reproduce:

  • Prepare a day with many calendar events, e.g. 10
  • Log in into the account when events need to be processed.
  • Switch to the agenda view for that day.
  • Scroll down to see the last events on the day.
    -> The view always jumps back to top

This behavior is not new but has been existing for along time already. Reproduced in Android v244.240903.0

@armhub armhub added bug broken functionality, usability problems, unexpected errors topic: calendar labels Sep 17, 2024
@juni2k juni2k self-assigned this Sep 20, 2024
@juni2k juni2k added android issues that concern the android client but not all clients and removed android issues that concern the android client but not all clients labels Sep 20, 2024
@juni2k
Copy link
Contributor

juni2k commented Sep 20, 2024

Still investigating, but curiously this only happens in the mobile/narrow view. Desktop/wide mode does not exhibit this problem at all.

@juni2k
Copy link
Contributor

juni2k commented Sep 20, 2024

Seems to be related to multiple pages sharing the same view model (thanks @ganthern for spotting this)
Strange behaviour described in this issue disappears when previousPage and nextPage are supplied with an empty node list.

return m(PageView, {
previousPage: {
key: previousDay.getTime(),
nodes: this.renderMobileEventList(previousDay, attrs),
},
currentPage: {
key: day.getTime(),
nodes: this.renderMobileEventList(day, attrs),
},
nextPage: {
key: nextDay.getTime(),
nodes: this.renderMobileEventList(nextDay, attrs),
},

@juni2k juni2k removed their assignment Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug broken functionality, usability problems, unexpected errors topic: calendar
Projects
None yet
Development

No branches or pull requests

2 participants