<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>379498</bug_id>
          
          <creation_ts>2017-05-04 03:29:47 +0000</creation_ts>
          <short_desc>Expose a user-facing setting to change QStyle::SH_ScrollBar_LeftClickAbsolutePosition</short_desc>
          <delta_ts>2020-02-18 14:06:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_style</component>
          <version>5.9.5</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=402578</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=384889</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=412685</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>usability</keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nate Graham">nate</reporter>
          <assigned_to name="Nate Graham">nate</assigned_to>
          <cc>aria</cc>
    
    <cc>ascaris</cc>
    
    <cc>bfeber</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>hugo.pereira.da.costa</cc>
    
    <cc>jp</cc>
    
    <cc>mountybike</cc>
    
    <cc>nate</cc>
    
    <cc>nfxjfg</cc>
    
    <cc>tempel.julian</cc>
          
          <cf_commitlink>https://cgit.kde.org/plasma-desktop.git/commit/?id=759cec4645e03a389e5b9619e97b128f4781aa67</cf_commitlink>
          <cf_versionfixedin>5.18.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1674677</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-05-04 03:29:47 +0000</bug_when>
    <thetext>Linux Distro: openSUSE Tumbleweed
Plasma version: 5.9.5
Breeze version: 5.9.5

I prefer the scrollbar style where left-clicking on the scroll track jumps the bar to that location (i.e. the current behavior for a middle-click). To get this behavior in GTK programs, I can set &quot;gtk-primary-button-warps-slider=1&quot; in ~/.config/gtk-3.0/settings.ini. For QT programs, the equivalent setting is QStyle::SH_ScrollBar_LeftClickAbsolutePosition, but Breeze doesn&apos;t expose that setting in the GUI, at System Settings &gt; Widget Style &gt; Scrollbars.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674705</commentid>
    <comment_count>1</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-05-04 09:41:37 +0000</bug_when>
    <thetext>But middle click works?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674706</commentid>
    <comment_count>2</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2017-05-04 09:43:37 +0000</bug_when>
    <thetext>(In reply to Christoph Feck from comment #1)
&gt; But middle click works?

here yes, at least</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674740</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-05-04 13:11:34 +0000</bug_when>
    <thetext>Yes, it does. I just prefer having the scroll bar move with a left-click in the trough, not a middle-click. Middle-clicking is annoying with a touchpad, which is what I&apos;m using 95% of the time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674752</commentid>
    <comment_count>4</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2017-05-04 13:53:40 +0000</bug_when>
    <thetext>(In reply to Christoph Feck from comment #1)
&gt; But middle click works?

I wonder if this should not be added to upstream &quot;kstyle&quot; rather than breeze.
It is not really a style specific feature, is it? 
And this way both oxygen and breeze (and any other kstyle derived widget style) would benefit from the extra option.
We could then add the extra option not to breeze configuration but rather to the &quot;Fine tuning&quot; tab of the widget style kcm.

wdyt ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674762</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-05-04 15:37:26 +0000</bug_when>
    <thetext>That&apos;s an excellent idea! You&apos;re right, this isn&apos;t really Breeze-specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1713961</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-11-28 14:03:08 +0000</bug_when>
    <thetext>*** Bug 387363 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775277</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-08-30 16:36:51 +0000</bug_when>
    <thetext>*** Bug 398067 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781883</commentid>
    <comment_count>8</comment_count>
    <who name="">tempel.julian</who>
    <bug_when>2018-09-18 15:58:35 +0000</bug_when>
    <thetext>I really would love to have the ability to jump to the scrollbar position also with primary mouse button (not middle mouse button) in Qt applications.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818562</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-11-19 20:40:44 +0000</bug_when>
    <thetext>*** Bug 401219 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861316</commentid>
    <comment_count>10</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2019-06-07 12:26:57 +0000</bug_when>
    <thetext>*** Bug 408409 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883635</commentid>
    <comment_count>11</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-10-04 19:37:38 +0000</bug_when>
    <thetext>I should finally do this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883636</commentid>
    <comment_count>12</comment_count>
    <who name="Björn Feber">bfeber</who>
    <bug_when>2019-10-04 19:41:55 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #11)
&gt; I should finally do this.

The GTK KCM already has this, so when the Application Style KCM has it too and we have the GTK settings synchronization structure then we can set that option for GTK there too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883641</commentid>
    <comment_count>13</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-10-04 20:06:52 +0000</bug_when>
    <thetext>Yeah. Though upon reflection, I&apos;m gonna put it in the General Behavior rather than Application style since it will affect all scrollbars including in Plasma, which is not an application, so it doesn&apos;t make sense IMO to put it in a KCM that&apos;s explicitly only about apps.

Having started already, it looks like this actually may not be all that hard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884003</commentid>
    <comment_count>14</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-10-07 02:17:13 +0000</bug_when>
    <thetext>*** Bug 402218 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892091</commentid>
    <comment_count>15</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-11-17 23:55:32 +0000</bug_when>
    <thetext>Here&apos;s a patch that implements this feature for Qt/KDE apps at least: https://phabricator.kde.org/D25361

Other patches will be required to get scrollbars in Plasma (Bug 384889) and QML-based desktop apps (Bug 412685) to follow suit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894502</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-12-02 18:18:51 +0000</bug_when>
    <thetext>Git commit dcadc14c952df6a25a357dbaad16ebde15b438a8 by Nate Graham.
Committed on 02/12/2019 at 18:18.
Pushed by ngraham into branch &apos;master&apos;.

Conditionally set SH_ScrollBar_LeftClickAbsolutePosition based on kdeglobals setting

Summary: CCBUG: 379498

Test Plan:
- Set `ScrollbarLeftClickNavigatesByPage=true` in the `[KDE]` section of ~/.config/kdeglobals
- Click in the scroll trough in a Qt/KDE app
- See that the scroll handle position jumps right there
- Set `ScrollbarLeftClickNavigatesByPage=false` or remove it from kdeglobals
- Click in the scroll trough in a Qt/KDE app
- See that the scroll handle moves up or down by one page height

Reviewers: #frameworks, #plasma

Subscribers: broulik, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D25360

M  +5    -0    src/kstyle/kstyle.cpp

https://commits.kde.org/frameworkintegration/dcadc14c952df6a25a357dbaad16ebde15b438a8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894634</commentid>
    <comment_count>17</comment_count>
    <who name="ariasuni">aria</who>
    <bug_when>2019-12-02 23:26:45 +0000</bug_when>
    <thetext>Thank you! Can’t wait to see it fully implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894639</commentid>
    <comment_count>18</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-12-03 00:12:03 +0000</bug_when>
    <thetext>You&apos;re very welcome!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910018</commentid>
    <comment_count>19</comment_count>
    <who name="">tempel.julian</who>
    <bug_when>2020-02-14 13:59:26 +0000</bug_when>
    <thetext>Thanks, Nate! Plasma 5.18 really comes with handy changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910020</commentid>
    <comment_count>20</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-02-14 14:03:17 +0000</bug_when>
    <thetext>You&apos;re welcome!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910562</commentid>
    <comment_count>21</comment_count>
    <who name="">tempel.julian</who>
    <bug_when>2020-02-16 10:52:31 +0000</bug_when>
    <thetext>Huh, it works in Okular, but for whatever reason not in LibreOffice Writer with kde5 VCL. There only middle mouse button jumps directly to the position, left mouse button doesn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910565</commentid>
    <comment_count>22</comment_count>
    <who name="ariasuni">aria</who>
    <bug_when>2020-02-16 11:30:44 +0000</bug_when>
    <thetext>I can confirm it works in KDE Applications, VLC, Firefox, Thunderbird, but not in LibreOffice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910625</commentid>
    <comment_count>23</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-02-16 17:28:56 +0000</bug_when>
    <thetext>That&apos;s a bug in LibreOffice. Please file a bug for them, telling them that when using the KDE5 VCL, they should respect QStyle::SH_ScrollBar_LeftClickAbsolutePosition. Then paste a link to the bug report here. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911116</commentid>
    <comment_count>24</comment_count>
    <who name="">tempel.julian</who>
    <bug_when>2020-02-18 14:06:48 +0000</bug_when>
    <thetext>Done:
https://bugs.documentfoundation.org/show_bug.cgi?id=130758</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>