Elementary els_scroller: Fixed "Wanted position" when using elm_smart_scroller_region_bring_in.

SVN revision: 57185
This commit is contained in:
Tom Hacohen 2011-02-20 09:32:44 +00:00
parent 57afcfb4ea
commit b0d87077a5
1 changed files with 4 additions and 0 deletions

View File

@ -1280,6 +1280,10 @@ elm_smart_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y,
ny = py;
if ((y < py) && ((y + h) < (py + (ch - my)))) ny = y;
else if ((y > py) && ((y + h) > (py + (ch - my)))) ny = y + h - (ch - my);
sd->wx = x;
sd->wy = y;
sd->ww = w;
sd->wh = h;
if ((nx == px) && (ny == py)) return;
if ((sd->down.bounce_x_animator) || (sd->down.bounce_y_animator) ||
(sd->scrollto.x.animator) || (sd->scrollto.y.animator))