Revert "Revert "edj_viewer: Fix cursor position on status bar.""
This reverts commit dd7da0b038
.
This commit is contained in:
parent
6a871e04fc
commit
010f54cbdb
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue