summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVBS <vdtizen.sds@samsung.com>2015-01-08 19:36:19 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-01-08 19:36:19 +0900
commitf7787e10fc55e590801c3237c22bdbefa45b0b39 (patch)
treeaa3c07ba056be2bf1e6ae57cd232d53967c4086a
parentd52a9683f5447b367b8d4227a2f762d53dd0d7da (diff)
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
-rw-r--r--src/lib/elm_gengrid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index c9a94d372..9f951f72b 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -1039,10 +1039,10 @@ _reorder_item_move_animator_cb(void *data)
1039 GG_IT(it)->ry += dy; 1039 GG_IT(it)->ry += dy;
1040 } 1040 }
1041 1041
1042 if ((((dx > 0) && (GG_IT(it)->rx >= GG_IT(it)->tx)) || 1042 if (((dx > 0) && (GG_IT(it)->rx >= GG_IT(it)->tx)) ||
1043 ((dx <= 0) && (GG_IT(it)->rx <= GG_IT(it)->tx))) 1043 ((dx <= 0) && (GG_IT(it)->rx <= GG_IT(it)->tx))
1044 && (((dy > 0) && (GG_IT(it)->ry >= GG_IT(it)->ty)) || 1044 || ((dy > 0) && (GG_IT(it)->ry >= GG_IT(it)->ty)) ||
1045 ((dy <= 0) && (GG_IT(it)->ry <= GG_IT(it)->ty)))) 1045 ((dy <= 0) && (GG_IT(it)->ry <= GG_IT(it)->ty)))
1046 { 1046 {
1047 evas_object_move(VIEW(it), GG_IT(it)->tx, GG_IT(it)->ty); 1047 evas_object_move(VIEW(it), GG_IT(it)->tx, GG_IT(it)->ty);
1048 if (it->group) 1048 if (it->group)