Bug 412685 - qqc2-desktop ScrollBars should respect QStyle::SH_ScrollBar_LeftClickAbsolutePosition when clicking in the scrollbar trough
Summary: qqc2-desktop ScrollBars should respect QStyle::SH_ScrollBar_LeftClickAbsolute...
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Marco Martin
Keywords: junior-jobs
: 425825 (view as bug list)
Depends on:
Reported: 2019-10-07 02:15 UTC by Nate Graham
Modified: 2020-09-26 17:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.75


Note You need to log in before you can comment on or make changes to this bug.
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