| Summary: | When opening a read room, neochat scrolls somewhere randomly up | ||
|---|---|---|---|
| Product: | [Applications] NeoChat | Reporter: | Jan Bidler <janbidler00> |
| Component: | General | Assignee: | Tobias Fella <fella> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | carl, darhma, hugo, james.h.graham, orangewinds |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | All | ||
| Latest Commit: | https://invent.kde.org/network/neochat/commit/884484922dfab5dce7735f914c5e715d02bfcc7f | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Jan Bidler
2022-07-12 17:37:10 UTC
I confirm the problem, unfortunately I don't know how to reproduce it either, it seems a random thing. NeoChat version 22.09 Operating System: NixOS 22.11 KDE Plasma Version: 5.26.2 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.7 Kernel Version: 6.0.6 (64-bit) Graphics Platform: X11 I add that the expected result should be to open the chat to the first unread message rather than the last message. AFAIK it has something to do with the focus somehow getting on some text element. Because if you spam down-arrow until you arrive at the bottom, this stops if I recall correctly (or at the very least, it changes where the room will scroll up to when viewed) I have this problem as well. It looks (behavior-wise) like there is a(n invisible) cursor in the list of messages, and Neochat brings you to the cursor when you re-open a room. Cursor position doesn't appear to be updated by anything other than arrow keys (up/down), including marking a room as read or manually clearing the read-indicator. Yes, eventually the presence of the cursor should indicate the last message read (or the first one to be read), and in my opinion if it worked well that would be the behavior one would expect, but it seems to work completely randomly. Worth noting the old gitLab issue for any relevant info https://invent.kde.org/network/neochat/-/issues/525 A possibly relevant merge request was started @ https://invent.kde.org/network/neochat/-/merge_requests/728 Git commit 884484922dfab5dce7735f914c5e715d02bfcc7f by James Graham. Committed on 28/12/2022 at 17:36. Pushed by nvrwhere into branch 'master'. Fix Room Initial Position When the room is changed set the roomlist view to the bottom making sure that it isn't in some random place. M +1 -0 src/qml/Page/RoomPage.qml https://invent.kde.org/network/neochat/commit/884484922dfab5dce7735f914c5e715d02bfcc7f |