Skip to content

Conversation

HomerSp
Copy link
Contributor

@HomerSp HomerSp commented Dec 10, 2020

This fixes an issue in v1.5.10 where scrolling up through the chat history would cause it to endlessly load older messages.
The problem happens because, I'm guessing, in electron 11 an element that has flex-flow as column-reverse will also reverse the scrollTop value - meaning it starts at 0 when not scrolled and then it goes down into the negatives as you start scrolling.
This change also means that we no longer have to calculate the position of the top message when adding older messages to the view, since it's based on the bottom of the view. So I changed this around to only save the scrollTop and then set that back when we added the older messages. For whatever reason the scroll position still changes when adding items, so we do have to save it. I also had to set the saved scroll top position at a later time as just setting it in adjustMainPos meant that it would be overridden.

@averissimo averissimo merged commit 035ce07 into yakyak:master Dec 10, 2020
@averissimo
Copy link
Member

I'm trying to contact the developer to grant you permissions, sorry about the delay

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