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
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.
Created attachment 160995 [details] Video Attached is another video showing the issue though in a much more aggressive manner.
Closing this as we don't use an interactive scrollbar anymore