From: Jaehwan Kim <jae.hwan.kim@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 07:33:28 +0000 (07:33 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 07:33:28 +0000 (07:33 +0000)
commit35be3f9186412061e142cbcc2170ad1564e9b846
treeb5069b58e426aaff1d246a3f457ad5e516a7a897
parent1083191fcef29a21c577793d6de7185336cae683
From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] els_scroller - bouncing doesn't work in
specific case

I found the bouncing of the scroller doesn't work in specific case.
When the scroller is scrolled but the animation doesn't occur,
sd->down.dy is not changed. Then in elm_smart_scroller_child_pos_set,
it's possible not to pass the below conditional sentence even if it
have to has the bounce.

if (((y < miny) && (0 <= sd->down.dy)) ||
((y > (my + miny)) && (0 >= sd->down.dy)))

So I reset the value sd->down.dx and sd->down.dy to 0 when mouse is up.
Please check patch file.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63797 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/els_scroller.c