From: Jaehwan Kim <jae.hwan.kim@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Aug 2011 08:46:52 +0000 (08:46 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Aug 2011 08:46:52 +0000 (08:46 +0000)
Subject: [E-devel] [Patch] signal "scroll,anim,stop"  in els_scroller

fix the bug which the signal "scroll,anim,stop" is not called sometimes.

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

src/lib/els_scroller.c

index 222b977..96b829d 100644 (file)
@@ -676,7 +676,7 @@ _smart_bounce_x_animator(void *data)
           {
              if (sd->down.momentum_animator)
                sd->down.bounce_x_hold = 1;
-             else if ((!sd->down.bounce_y_animator) &&
+             if ((!sd->down.bounce_y_animator) &&
                       (!sd->scrollto.y.animator))
                _smart_anim_stop(sd->smart_obj);
              sd->down.bounce_x_animator = NULL;
@@ -714,7 +714,7 @@ _smart_bounce_y_animator(void *data)
           {
              if (sd->down.momentum_animator)
                sd->down.bounce_y_hold = 1;
-             else if ((!sd->down.bounce_x_animator) &&
+             if ((!sd->down.bounce_x_animator) &&
                  (!sd->scrollto.y.animator))
                _smart_anim_stop(sd->smart_obj);
              sd->down.bounce_y_animator = NULL;