Bug 468155 - Scrollbar handle changes size based on the currently visible messages
Summary: Scrollbar handle changes size based on the currently visible messages
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-04 20:25 UTC by Jack Hill
Modified: 2024-11-16 03:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Video (2.31 MB, video/webm)
2023-08-16 04:00 UTC, Justin Zobel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Hill 2023-04-04 20:25:12 UTC
SUMMARY
When scrolling through a list of messages, the scrollbar will change size even when no messages are loaded. It seems to be based on the size of the currently shown messages (not sure how exactly; haven't looked at the code).

STEPS TO REPRODUCE
1. Send some messages of varying sizes
2. Scroll through the messages

OBSERVED RESULT
See how the scrollbar goes small when you enter a large message, and large again when you leave the large message

EXPECTED RESULT
Scrollbar size should be based on the total height of all fetched messages (i.e. it should only change size if more messages are loaded)

SOFTWARE/OS VERSIONS
NeoChat version: git master @ commit 2470990d7558a54d952ea5cb4ae3f8a9ccfba780
Operating System: openSUSE Tumbleweed 20230327
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 James Graham 2023-04-08 14:17:38 UTC
This is this issue https://invent.kde.org/network/neochat/-/issues/96 in action. It's caused by the delegates dynamically loading in as you scroll. The QML listView doesn't know the true size of the item until fully loaded so as item are loaded/unloaded as you scroll this causes the scroll bar handle to expand/contract based upon the current total size of items loaded.
Comment 2 Justin Zobel 2023-08-16 04:00:23 UTC
Created attachment 160995 [details]
Video

Attached is another video showing the issue though in a much more aggressive manner.
Comment 3 Joshua Goins 2024-11-16 03:34:36 UTC
Closing this as we don't use an interactive scrollbar anymore