summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2014-04-30 17:59:40 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-04-30 17:59:40 +0900
commitd0a55fd49294831fb5bb694d66c70300a45b7cd9 (patch)
tree5d00d6515feb30262e1340818fb5947349f44ac8 /src/lib
parentc12f2a2f63cf34ae0f15fe50c35b44cb55c4813f (diff)
gengrid: frame variable should be used for position changes.
Summary: Earlier pos was getting used for the item coordinates. To support other Ecore_Pos_Map variations, frame variable should be used. @fix Test Plan: elementary_test-> "Gengrid Focus". Enable reorder mode and use keys to move the focused item. Reviewers: raster, seoz Reviewed By: seoz CC: seoz Differential Revision: https://phab.enlightenment.org/D811
Diffstat (limited to 'src/lib')
-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 12d1a2eb8..1034f4dc6 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -2103,11 +2103,11 @@ _item_move_cb(void *data, double pos)
2103 2103
2104 dx = sd->reorder.x2 - sd->reorder.x1; 2104 dx = sd->reorder.x2 - sd->reorder.x1;
2105 dy = sd->reorder.y2 - sd->reorder.y1; 2105 dy = sd->reorder.y2 - sd->reorder.y1;
2106 xx1 = sd->reorder.x1 + dx * pos; 2106 xx1 = sd->reorder.x1 + dx * frame;
2107 yy1 = sd->reorder.y1 + dy * pos; 2107 yy1 = sd->reorder.y1 + dy * frame;
2108 2108
2109 xx2 = sd->reorder.x2 - dx * pos; 2109 xx2 = sd->reorder.x2 - dx * frame;
2110 yy2 = sd->reorder.y2 - dy * pos; 2110 yy2 = sd->reorder.y2 - dy * frame;
2111 2111
2112 evas_object_move(VIEW(sd->reorder.it1), xx1, yy1); 2112 evas_object_move(VIEW(sd->reorder.it1), xx1, yy1);
2113 evas_object_move(VIEW(sd->reorder.it2), xx2, yy2); 2113 evas_object_move(VIEW(sd->reorder.it2), xx2, yy2);