jaehyun pushed a commit to branch master.

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

commit 010f54cbdb01d08e0d29aa34f8c8c7cfe6707f39
Author: Jaehyun Cho <[email protected]>
Date:   Tue Feb 24 20:35:54 2015 +0900

    Revert "Revert "edj_viewer: Fix cursor position on status bar.""
    
    This reverts commit dd7da0b038184a2d2a65b8bf752029ad9e8e468a.
---
 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