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
This commit is contained in:
VBS 2015-01-08 19:36:19 +09:00 committed by Carsten Haitzler (Rasterman)
parent e649486e58
commit fdfde0d5e0
1 changed files with 4 additions and 4 deletions

View File

@ -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)