[*][els_scroller] svn merge revision 63797 only
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 07:33:28 +0000 (07:33 +0000)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Tue, 4 Oct 2011 08:30:36 +0000 (17:30 +0900)
commit2d60bb44dec60efdec90ebb7644be5ae6f01d7df
tree1def9a1b3c5241c1cbb322b7f1bf97b0c598f5a8
parentf8591873141be06979879b0d4e02bb8c72f847ee
[*][els_scroller] svn merge revision 63797 only

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: https://svn.enlightenment.org/svn/e/trunk/elementary@63797 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/els_scroller.c