subtract zone position from initial gadcon client drag coordinates
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 5 Dec 2013 04:09:12 +0000 (23:09 -0500)
committerMike Blumenkrantz <zmike@samsung.com>
Thu, 5 Dec 2013 04:09:12 +0000 (23:09 -0500)
T369

src/bin/e_gadcon.c

index 67cb34e..8e6b44e 100644 (file)
@@ -2540,8 +2540,8 @@ _e_gadcon_client_move_start(E_Gadcon_Client *gcc)
      return;
 
    /* using drag pos to calc offset between pointer and gcc pos */
-   gcc->drag.x = (x - gcc->dx);
-   gcc->drag.y = (y - gcc->dy);
+   gcc->drag.x = x - (gcc->dx + gx);
+   gcc->drag.y = y - (gcc->dy + gy);
 
    gcc->state_info.resist = 0;
 }