forked from enlightenment/efl
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:
parent
bb6ea34e68
commit
8bdcdf8cc6
|
@ -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)) ||
|
||||
|
|
Loading…
Reference in New Issue