raster pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=f7787e10fc55e590801c3237c22bdbefa45b0b39
commit f7787e10fc55e590801c3237c22bdbefa45b0b39 Author: VBS <vdtizen....@samsung.com> Date: Thu Jan 8 19:36:19 2015 +0900 Gengrid: fix gengrid reorder animation bug Summary: When gengrid reordering by thumb scroll, some items disapear on screan. Test Plan: 1. Enabled thumb scroll in elm config 2. Launch gengrid test in elementary_test 3. Check reorder mode enabled 4. Try to move reordering item to upon or lower area by thumb scrolling, items disapear. Reviewers: seoz, raster Reviewed By: raster Subscribers: bluezery Differential Revision: https://phab.enlightenment.org/D1852 --- src/lib/elm_gengrid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index c9a94d3..9f951f7 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -1039,10 +1039,10 @@ _reorder_item_move_animator_cb(void *data) GG_IT(it)->ry += dy; } - if ((((dx > 0) && (GG_IT(it)->rx >= GG_IT(it)->tx)) || - ((dx <= 0) && (GG_IT(it)->rx <= GG_IT(it)->tx))) - && (((dy > 0) && (GG_IT(it)->ry >= GG_IT(it)->ty)) || - ((dy <= 0) && (GG_IT(it)->ry <= GG_IT(it)->ty)))) + if (((dx > 0) && (GG_IT(it)->rx >= GG_IT(it)->tx)) || + ((dx <= 0) && (GG_IT(it)->rx <= GG_IT(it)->tx)) + || ((dy > 0) && (GG_IT(it)->ry >= GG_IT(it)->ty)) || + ((dy <= 0) && (GG_IT(it)->ry <= GG_IT(it)->ty))) { evas_object_move(VIEW(it), GG_IT(it)->tx, GG_IT(it)->ty); if (it->group) --