Fixed overshooting with a very low start velocity.
authorRobert Griebl <robert.griebl@nokia.com>
Mon, 24 Jan 2011 11:45:03 +0000 (12:45 +0100)
committerRobert Griebl <robert.griebl@nokia.com>
Mon, 24 Jan 2011 13:12:58 +0000 (14:12 +0100)
commit7bad867382ad6c84155ffcfbb361709a8e8184ab
tree14b588967d87f428fe27539ff0eee38c86d00bb8
parent4810b587a65d81f8f90646efd09cadeb1276a756
Fixed overshooting with a very low start velocity.

Before this patch, the slow down (overshoot) was a separate scroll segment.
This could lead to an actual acceleration when going into overshoot with a
very low velocity.  The new approach is to just continue with the normal
scroll segment, until the max overshoot distance is reached and only add
one additional segment for the bounce-back animation to complete the
overshoot animation.

Reviewed-by: Ralf Engels
src/gui/util/qscroller.cpp
src/gui/util/qscroller_p.h