Skip to content
  • Alex Rosca's avatar
    Avoid unintentional accelerating flicks by reducing maximum flick time · 8ae95b29
    Alex Rosca authored and David Hurka's avatar David Hurka committed
    When making a flick using the mouse or the touchscreen and then slowly
    dragging the pages in the same direction with the flick, it unintentionally
    reenters the flicking state after a mouse button release and it's quite
    annoying. The commit reduces the maximum time before the next flick.
    
    Steps to reproduce:
    1) Flick in direction A.
    2) While the view is coasting, decide that you want to stop close to the current position.
    3) Grab the view (still coasting), and drag it slowly in direction A.
    4) When you reached the desired point, stop your movement, and release the view.
    5) QScroller interprets this release as “accelerating flick”,
       and makes the view coast faster in direction A.
    
    Upstream bug is QTBUG-88249; QScroller ignores MinimumVelocity for accelerating flicks.
    8ae95b29