From: Jaehwan Kim Date: Wed, 3 Apr 2013 02:19:50 +0000 (+0900) Subject: [Scroller] Fix the scroll can be clicked right, when it doesn't have a bounce. X-Git-Tag: 2.1b_release~68 X-Git-Url: http://review.tizen.org/git/?p=framework%2Fuifw%2Felementary.git;a=commitdiff_plain;h=7a1bbccfbcdcfa4186ec0cf8d61ef9841080f71c;hp=5cd8c83e1317355b299608b7e1dad4d52fe4ff8d [Scroller] Fix the scroll can be clicked right, when it doesn't have a bounce. Change-Id: Icfd2fee8a87f2e5418080dbef39a0c3d80ca0f36 --- diff --git a/src/lib/elm_interface_scrollable.c b/src/lib/elm_interface_scrollable.c index e764a90..0eeac33 100644 --- a/src/lib/elm_interface_scrollable.c +++ b/src/lib/elm_interface_scrollable.c @@ -1342,6 +1342,40 @@ _elm_scroll_content_pos_set(Evas_Object *obj, if (y - miny > my) y = my + miny; } + if (((!_elm_config->thumbscroll_bounce_enable) || + (!sid->bounce_horiz)) && (sid->scrollto.x.animator) && + ((px != x) && ((x == minx) || (x == (mx + minx))))) + { + ecore_animator_del(sid->scrollto.x.animator); + sid->scrollto.x.animator = NULL; + } + + if (((!_elm_config->thumbscroll_bounce_enable) || + (!sid->bounce_vert)) && (sid->scrollto.y.animator) && + ((py != y) && ((y == miny) || (y == (my + miny))))) + { + ecore_animator_del(sid->scrollto.y.animator); + sid->scrollto.y.animator = NULL; + } + + if (((!_elm_config->thumbscroll_bounce_enable) || + ((!sid->bounce_horiz) && (!sid->bounce_vert))) && + (sid->down.momentum_animator) && + ((((px != x) && ((x == minx) || (x == (mx + minx)))) && (py == y)) || + (((py != y) && ((y == miny) || (y == (my + miny)))) && (px == x)))) + { + ecore_animator_del(sid->down.momentum_animator); + sid->down.momentum_animator = NULL; + sid->down.bounce_x_hold = EINA_FALSE; + sid->down.bounce_y_hold = EINA_FALSE; + sid->down.ax = 0; + sid->down.ay = 0; + sid->down.pdx = 0; + sid->down.pdy = 0; + if (sid->content_info.resized) + _elm_scroll_wanted_region_set(sid->obj); + } + psd->api->pos_set(sid->pan_obj, x, y); psd->api->pos_get(sid->pan_obj, &spx, &spy);