tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
6.1k stars 525 forks source link

Agenda view scrolls to top while loading events #7576

Open armhub opened 1 month ago

armhub commented 1 month ago

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:

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

juni2k commented 1 month ago

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

juni2k commented 1 month ago

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.

https://github.com/tutao/tutanota/blob/a259fee8268d5a066e74d2e5d91e4a4a162a2c93/src/calendar-app/calendar/view/CalendarAgendaView.ts#L165-L177