Summary: | Sliders and scrollbars don't follow the mouse accurately | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | Jack Hill <jackhill3103> |
Component: | general | Assignee: | ratijas <me> |
Status: | ASSIGNED --- | ||
Severity: | normal | CC: | ahiemstra, kde, me, noahadvs, notmart, yerrey |
Priority: | NOR | ||
Version: | 5.101.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jack Hill
2022-08-31 16:23:51 UTC
This is seems like an issue with the QML Slider and I've made a bug report at https://bugreports.qt.io/browse/QTBUG-106229. I'm not sure if they're going to fix it or if this is just something we should workaround, though the workaround is quite simple by setting the handle width explicitly. I think it's actually a qqc2-desktop-style bug, because 1) I can't reproduce when building a fresh Qt app from Qt Creator, and 2) The same issue occurs with scrollbars To reproduce the scrollbar issue: 1) Open NeoChat 2) Open a room with a large number of members, e.g. #kde-welcome:kde.org 3) Open the room sidebar (with the header "Room information") 4) Use the scrollbar beside the members list You'll notice that when you hold the mouse down on the handle: * If the handle is at the top of the scrollbar, then the cursor is at the top of the handle * If the handle is at the bottom of the scrollbar, then the cursor is at the bottom of the handle Also try placing the handle at the very top, and then clicking the centre of the handle. The scrollbar will jump down slightly. For the slider: Yeah, this is what happens when you don't allow the handle of a slider to stick out of the bounds of the groove. A handle all the way to the left or right should be centered on the point where the rounded part of the groove ends. The handle shouldn't be out of the bounds of the slider, but the groove can be made a bit shorter with margins added to compensate. This might require some work on the Breeze QStyle to properly fix. For the scrollbar: Not really sure what's going on with that or what should be done to fix it. A scrollbar handle needs to stay in the bounds of the scrollbar groove, so the above fix for slider doesn't apply. For sliders it was fixed in https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/272 ScrollBars are still on their way to greatness tho… |