subtract zone position from initial gadcon client drag coordinates

T369
This commit is contained in:
Mike Blumenkrantz 2013-12-04 23:09:12 -05:00
parent c49d5eea96
commit ed6bfb1955
1 changed files with 2 additions and 2 deletions

View 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;
}