Reviewed the interaction of the AUTO mode, now we use the time attribute of the event...
authorAlejandro G. Castro <alex@igalia.com>
Mon, 19 May 2008 15:34:51 +0000 (15:34 +0000)
committerAlejandro G. Castro <alex@igalia.com>
Mon, 19 May 2008 15:34:51 +0000 (15:34 +0000)
commit16e03e9a51e4ebbe95934de3ddbd2a3caadc8ef8
treebaee3d4ad04226d0533ec4a17c76ab3b673ddafb
parentb97a9f6e96b80e847b3f474cffd388f0b2b4f91b
Reviewed the interaction of the AUTO mode, now we use the time attribute of the events and calculate the velocity in the motion, doing a gimp like calculation. The velocity is calculated in each motion event using the last velocity and the current one, the SMOOTH_FACTOR controls the percentage of the new velocity we use.

* src/hildon-pannable-area.c: Replaced the time based algorithm
for the AUTO mode.
(hildon_pannable_area_motion_notify_cb): now we do not launch the
timeout for the AUTO mode when we are still moving the cursor. We
added also the velocity calculation in this function.
(hildon_pannable_area_button_release_cb): launch the timeout in
case we are in AUTO mode. There are still some constants here that
come from the old implementation that should be reviewed and
handled properly.
ChangeLog
src/hildon-pannable-area.c