Swiftcord icon indicating copy to clipboard operation
Swiftcord copied to clipboard

Fix msg history

Open 12944qwerty opened this issue 2 years ago • 2 comments

Unflips the messages view. This allows for clicking messages to work properly (namely mentions when I get that released)

However, I did fix the scrolling. Clicking on a reply scrolls to that message and when you switch to a channel, it scrolls to the unread bar or to the bottommost message.

12944qwerty avatar Jul 24 '23 20:07 12944qwerty

One problem here is that it looks like it would scroll to the last message only upon loading, which is not the current (desired) behaviour. Flipping the List has the advantage of keeping the view constantly anchored on the bottom, while elements are added and removed. This allows for a flawless inverted scroll experience expected of a chat app, which was the primary reason for implementing the history list as such. It is unfortunately difficult to offer the same experience by manually scrolling the list, and I would not like to compromise the existing experience.

cryptoAlgorithm avatar Jul 25 '23 14:07 cryptoAlgorithm

That should be fixed now. Rotating it by 180 twice gets you to start at bottom immediately without scrolling AND it doesn't sacrifice mouse behaviors. However, it did move the scrollbar to the left which I moved back by adding a geometry reader to get the width of the scrollbar to move it back.

In addition to that, I've also combined the day and unread dividers in those cases.

12944qwerty avatar Jul 25 '23 18:07 12944qwerty