Bug 412685

Summary: qqc2-desktop ScrollBars should respect QStyle::SH_ScrollBar_LeftClickAbsolutePosition when clicking in the scrollbar trough
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Nate Graham <nate>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugseforuns, kde, kde
Priority: NOR Keywords: junior-jobs
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=402578
https://bugs.kde.org/show_bug.cgi?id=379498
https://bugs.kde.org/show_bug.cgi?id=384889
Latest Commit: Version Fixed In: 5.75

Description Nate Graham 2019-10-07 02:15:14 UTC
Bug 402578 changed the click-in-the-scroll-trough behavior to match the current QWidgets default, but ideally we should respect the style hint so that when Bug 379498 gets fixes, all the scrollbars instantly react accordingly.
Comment 1 Kai Uwe Broulik 2019-10-07 08:11:41 UTC
Sounds like a simple change to qqc2-desktop-style:

That attribute is already exposed via KQuickStyleItem::styleHint, so effectively one would just need to check style.styleHint("scrollToClickPosition") in the MouseArea of ScrollBar.qml and then jump to position like when doing a middle mouse click.
Comment 2 Nate Graham 2020-08-26 17:48:02 UTC
*** Bug 425825 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2020-09-26 15:07:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/31
Comment 4 Bharadwaj Raju 2020-09-26 17:36:40 UTC
Git commit 7b7946e110afae7b2364fa46c2cb874f2e501204 by Bharadwaj Raju.
Committed on 26/09/2020 at 14:57.
Pushed by ngraham into branch 'master'.

Respect scrollbar click to jump to position setting

Checks style.styleHint("scrolltoClickPosition") and respects the
behaviour set (whether clicking on a scroll bar position should move a
page up/down or jump to that absolute position)

M  +14   -5    org.kde.desktop/ScrollBar.qml

https://invent.kde.org/frameworks/qqc2-desktop-style/commit/7b7946e110afae7b2364fa46c2cb874f2e501204