interface scrollerable: modify the loop_v condition in _elm_scroll_momentum_animator() function

Summary:
change the 'sid->loop_v' condition to '!sid->loop_v' to delete momentum animator
when the vertical scroller reached the end of the content

@fix

Reviewers: raster, Hermet, woohyun

Subscribers: CHAN

Differential Revision: https://phab.enlightenment.org/D2609
This commit is contained in:
taehyub 2015-06-03 21:30:49 +09:00 committed by ChunEon Park
parent bb6ea34e68
commit 8bdcdf8cc6
1 changed files with 1 additions and 1 deletions

View File

@ -2063,7 +2063,7 @@ _elm_scroll_momentum_animator(void *data)
if (!_elm_config->thumbscroll_bounce_enable || !sid->bounce_vert)
{
if (y <= miny) no_bounce_y_end = EINA_TRUE;
if (sid->loop_v && (y - miny) >= maxy) no_bounce_y_end = EINA_TRUE;
if (!sid->loop_v && (y - miny) >= maxy) no_bounce_y_end = EINA_TRUE;
}
if ((dt >= 1.0) ||
((sid->down.bounce_x_hold) && (sid->down.bounce_y_hold)) ||