You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scrolling upwards, more history get’s pulled in. But I can scroll so fast upwards, that I reach the upper end of log where no reload get’s triggered. I actually have to bounce the view against the top again and again everytime I want to pull more history.
The text was updated successfully, but these errors were encountered:
After some minor refactoring and experimenting I think I've found I way to make fetching historical messages so unobtrusive that you can scroll yourself away. The respective (very small) PR for libqmatrixclient is already submitted and hopefully will be merged soon; the Quaternion PR will follow shortly afterwards.
…w much to fetch
* getPreviousContent() won't be triggered during the model resetting; this should prevent unnecessary fetching reported in quotient-im#118.
* Previously we used a hard 5-pixel margin to check if it's time to scroll and fetched strictly 10 messages. This led to stuttering when scrolling far back the timeline, as reported in quotient-im#94. The new code calculates whether there are enough pixels above to scroll at the same speed for the nearest 2 seconds, and if not, fetches additional messages that would amount to about 3 additional seconds of scrolling (assuming that an average height of a fetched message in pixels will be the same as the average message height for the already loaded timeline).
Closesquotient-im#94, quotient-im#118
When scrolling upwards, more history get’s pulled in. But I can scroll so fast upwards, that I reach the upper end of log where no reload get’s triggered. I actually have to bounce the view against the top again and again everytime I want to pull more history.
The text was updated successfully, but these errors were encountered: