jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=f2d5a2224066eb37fba1b83aed1e382426550cb4

commit f2d5a2224066eb37fba1b83aed1e382426550cb4
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Tue Feb 24 16:48:11 2015 +0900

    edj_viewer: Fix cursor position on status bar.
    
    Fix cursor position on status bar not to be bigger than view size.
---
 src/lib/edj_viewer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/edj_viewer.c b/src/lib/edj_viewer.c
index caef7f0..a1b273c 100644
--- a/src/lib/edj_viewer.c
+++ b/src/lib/edj_viewer.c
@@ -129,8 +129,8 @@ rect_mouse_move_cb(void *data, Evas *e EINA_UNUSED,
    Evas_Coord x, y, w, h;
    evas_object_geometry_get(obj, &x, &y, &w, &h);
 
-   cursor.x = ev->cur.canvas.x;
-   cursor.y = ev->cur.canvas.y;
+   cursor.x = ev->cur.canvas.x - x;
+   cursor.y = ev->cur.canvas.y - y;
    cursor.relx = (float) ((ev->cur.canvas.x - x) / (float) w);
    cursor.rely = (float) ((ev->cur.canvas.y - y) / (float) h);
 

-- 


Reply via email to