[scroller] check hold and freeze in _smart_hold_animation
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Thu, 14 Jul 2011 05:07:37 +0000 (14:07 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 18 Jul 2011 08:06:27 +0000 (17:06 +0900)
Change-Id: I39f126bf248147a7e0375f9f06c83f2b5216c1fa

src/lib/els_scroller.c

index dfa449a..3339801 100644 (file)
@@ -1723,7 +1723,7 @@ _smart_hold_animator(void *data)
    fx = sd->down.hold_x;
    fy = sd->down.hold_y;
 
-   if (_elm_config->scroll_smooth_time_interval > 0.0)
+   if ((!sd->hold) && (!sd->freeze) && (_elm_config->scroll_smooth_time_interval > 0.0))
      {
         int i, count = 0; //count for the real event number we have to deal with
         int queue_size = 10; //for event queue size