Elementary els_scroller: Fixed updating of wx/wy/ww/wh with momentum and bounce.

Patch by Aharon Hillel.

SVN revision: 56986
This commit is contained in:
Tom Hacohen 2011-02-13 14:37:18 +00:00
parent b658e5d4c6
commit eb7a0308c3
1 changed files with 10 additions and 0 deletions

View File

@ -412,6 +412,12 @@ _smart_momentum_end(Smart_Data *sd)
if ((sd->down.bounce_x_animator) || (sd->down.bounce_y_animator)) return;
if (sd->down.momentum_animator)
{
Evas_Coord px, py;
elm_smart_scroller_child_pos_get(sd->smart_obj, &px, &py);
sd->wx = px;
sd->wy = py;
elm_smart_scroller_child_viewport_size_get(sd->smart_obj,
&sd->ww, &sd->wh);
ecore_animator_del(sd->down.momentum_animator);
sd->down.momentum_animator = NULL;
sd->down.bounce_x_hold = 0;
@ -789,6 +795,10 @@ _smart_momentum_animator(void *data)
(no_bounce_x_end && no_bounce_y_end))
{
_smart_anim_stop(sd->smart_obj);
sd->wx = x;
sd->wy = y;
elm_smart_scroller_child_viewport_size_get(sd->smart_obj,
&sd->ww, &sd->wh);
sd->down.momentum_animator = NULL;
sd->down.bounce_x_hold = 0;
sd->down.bounce_y_hold = 0;