Improved KineticScroll class a little bit
authorTomaz Noleto <tomaz.noleto@indt.org.br>
Wed, 15 Feb 2012 23:10:39 +0000 (19:10 -0400)
committerTomaz Noleto <tomaz.noleto@indt.org.br>
Wed, 15 Feb 2012 23:15:38 +0000 (19:15 -0400)
commit33877545ccc07f0dbada7ee0305ec8a470825472
tree713b4209db5579d0fc90bfc5994ea8567de30a3e
parent4e6edee7656c1c4d76e41906abdab1d2fffdfa92
Improved KineticScroll class a little bit

Consider using kinetic scrolling when latest position retrieved from
mouseMove is the same as from mouseUp. In that case, check if the delta
time was small enough and use last valid distance delta to provide speed
input for kinetic scrolling.

Signed-off-by: Tomaz Noleto <tomaz.noleto@indt.org.br>
widgets/kineticscroll.cpp