summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-12-15 07:52:27 (GMT)
committerMinkyu Kang <mk7.kang@samsung.com>2015-12-15 07:52:27 (GMT)
commit6133e71c78487ecd1b327d790e927db91236f367 (patch)
treebbf53e0ec60b6abe72842eefe04f1780198dbb30
parent33e799d9739fba539c51d6b379cb826d8c856c96 (diff)
downloadair_mediahub-6133e71c78487ecd1b327d790e927db91236f367.zip
air_mediahub-6133e71c78487ecd1b327d790e927db91236f367.tar.gz
air_mediahub-6133e71c78487ecd1b327d790e927db91236f367.tar.bz2
Change-Id: I3b420d9a78784191ca72335b849465cc0fd21c1b Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--src/view/zoom.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/zoom.c b/src/view/zoom.c
index 89cd968..6d2d93e 100644
--- a/src/view/zoom.c
+++ b/src/view/zoom.c
@@ -258,7 +258,11 @@ static void _move_navi(struct _priv *priv, Evas_Coord_Point coord)
else
my = (my - ny) / priv->image_ratio;
- elm_scroller_region_show(priv->photo, mx, my, pw, ph);
+ mx /= priv->zoom_ratio;
+ my /= priv->zoom_ratio;
+
+ elm_scroller_region_get(priv->photo, NULL, NULL, &w, &h);
+ elm_scroller_region_show(priv->photo, mx, my, w, h);
}
static Eina_Bool _zoom_set(void *data)