<?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>369426</bug_id>
          
          <creation_ts>2016-09-27 14:20:24 +0000</creation_ts>
          <short_desc>Desktop switch scroll is too fast with touchpad scrolling</short_desc>
          <delta_ts>2021-03-12 14:24:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Containment</component>
          <version>5.7.4</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=419867</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>usability</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Salvo &quot;LtWorf&quot; Tomaselli">tiposchi</reporter>
          <assigned_to name="Marco Martin">notmart</assigned_to>
          <cc>bshah</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>josephj222222</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>RaitaroHikami</cc>
    
    <cc>torokati44</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1627916</commentid>
    <comment_count>0</comment_count>
    <who name="Salvo &quot;LtWorf&quot; Tomaselli">tiposchi</who>
    <bug_when>2016-09-27 14:20:24 +0000</bug_when>
    <thetext>I am using a laptop, I normally scrol with 2 fingers on the touchpad, however changing desktop with this is rather difficult because it is not very precise, and I can&apos;t do 1 scroll-click thing.

So I&apos;d like to see a timeout of a few milliseconds that disables scrolling before activating it again, so that I could switch to a certain desktop rather than play roulette.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869083</commentid>
    <comment_count>1</comment_count>
    <who name="Joe">josephj222222</who>
    <bug_when>2019-07-16 03:16:48 +0000</bug_when>
    <thetext>This is almost identical to #391551. This needs some work. It&apos;s an accessibility issue as well as an an annoyance. I often end up unintentionally scrolling desktops when I&apos;m just trying to move the mouse cursor from the panel to a window on the desktop I just selected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014140</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-10 19:17:26 +0000</bug_when>
    <thetext>*** Bug 391551 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014157</commentid>
    <comment_count>3</comment_count>
    <who name="Joe">josephj222222</who>
    <bug_when>2021-03-10 19:36:08 +0000</bug_when>
    <thetext>I&apos;d really appreciate some movement on this issue. It is a major source of frustration with an otherwise pretty great UI/UX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014216</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-10 20:55:10 +0000</bug_when>
    <thetext>Is it actually working at all for you? Touchpad scroll-on-the-desktop-to-switch-virtual-desktops has just been totally broken since 5.19; see Bug 419867. Or is that the issue you&apos;re experiencing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014395</commentid>
    <comment_count>5</comment_count>
    <who name="Salvo &quot;LtWorf&quot; Tomaselli">tiposchi</who>
    <bug_when>2021-03-11 05:59:36 +0000</bug_when>
    <thetext>It works for me on 5.20, what can I say…

However i&apos;d appreciate if it did it more slowly so I didn&apos;t have to finely calibrate my fingers to trigger 1 and only 1 &quot;scroll event&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014682</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-11 23:23:56 +0000</bug_when>
    <thetext>I bet this bug has the same root cause as Bug 419867. Let me see if I can figure it out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014704</commentid>
    <comment_count>7</comment_count>
    <who name="Joe">josephj222222</who>
    <bug_when>2021-03-12 00:40:39 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #6)
&gt; I bet this bug has the same root cause as Bug 419867. Let me see if I can
&gt; figure it out.

Seems like it might be related. However, I don&apos;t have any screen edge actions enabled and I don&apos;t even know how scroll wheel emulation works on a touchpad, but I certainly don&apos;t use it on purpose.

For reference, I&apos;m on kubuntu 18.04, KDE Frameworks 5.47.0 Qt 5.9.5 (built against 5.9.5), planning to upgrade to 20.04 sometime soon.

My root issue is that I have two semi-numb fingers, so I frequently accidentally get two-fingered touchpad actions without feeling it.

I asked elsewhere about getting an optional enhancement such that touchpad scrolling would be disabled unless I was holding down a key such as Ctrl, but that didn&apos;t go anywhere. I don&apos;t want to disable it completely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014713</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-12 04:02:37 +0000</bug_when>
    <thetext>Looking into this, there is no feasible way to make just the virtual desktop switching scroll action require a bigger touchpad scroll before activating. We could make all desktop touchpad scroll actions require a bigger touchpad scroll before triggering, however.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014715</commentid>
    <comment_count>9</comment_count>
    <who name="Joe">josephj222222</who>
    <bug_when>2021-03-12 04:07:07 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #8)
&gt; Looking into this, there is no feasible way to make just the virtual desktop
&gt; switching scroll action require a bigger touchpad scroll before activating.
&gt; We could make all desktop touchpad scroll actions require a bigger touchpad
&gt; scroll before triggering, however.

That might work, but it would probably have to be user configurable because there&apos;s no way one setting will make everyone happy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014722</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-12 04:30:49 +0000</bug_when>
    <thetext>I&apos;m starting to wonder if this is fixable.

In plasma-framework/src/scriptengines/qml/plasmoid/containmentinterface.cpp, we accumulate scroll angle deltas from QWheelEvent::angleDelta(), under the assumption that 120 is one scroll click, at which point the &quot;I did a scroll&quot; event fired. This works fine for mouse wheels, but for a touchpad, it results in a very small finger movement producing one scroll event. Ideally we would want for a larger finger movement to be required. A value between 240 and 360 produces a better result for my touchpad, but makes it unusably slow for mouse wheels. We need a way to distinguish between when the event comes from a mouse wheel and when it comes from a touchpad. 	QWheelEvent::pixelDelta() is supposedly used for this, but it always produces 0, and the Qt documentation says that it&apos;s unreliable on X11 and should not be used. :/

Not sure how to proceed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014750</commentid>
    <comment_count>11</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-12 04:55:21 +0000</bug_when>
    <thetext>I guess we could implement a handler for pixelDelta() and it would work for Wayland users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014758</commentid>
    <comment_count>12</comment_count>
    <who name="Joe">josephj222222</who>
    <bug_when>2021-03-12 06:55:07 +0000</bug_when>
    <thetext>If you make it user configurable, then you don&apos;t need to know mouse vs. touchpad. It could be in a config file because any particular user is probably going to adjust it once and forget it - so it doesn&apos;t have to be GUI or dynamically updated the moment it changes. (Those would be nice, but probably not worth the effort.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014848</commentid>
    <comment_count>13</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-12 14:24:46 +0000</bug_when>
    <thetext>Unfortunately making it user-configurable does not help; what if the user is using a laptop and has a touchpad but also has a mouse plugged in and switches between both depending on which one is closer to their hand? That&apos;s how I often work. we need the ability to distinguish between input devices programmatically, not push the burden onto the user.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>