improve shelf gadget dragging

ticket #1658


SVN revision: 78420
This commit is contained in:
Mike Blumenkrantz 2012-10-25 07:37:53 +00:00
parent 1d2b6034b0
commit ebef167dab
1 changed files with 1 additions and 2 deletions

View File

@ -2575,7 +2575,7 @@ _e_gadcon_client_move_go(E_Gadcon_Client *gcc)
}
/* DRAG RIGHT */
if (x > 0 && (cx + gcc->drag.x > gcc->config.pos + gcc->config.size / 2))
if (x > 0 && (cx + gcc->drag.x > gcc->config.pos))
{
if (gcc->state_info.state != E_LAYOUT_ITEM_STATE_POS_INC)
gcc->state_info.resist = 0;
@ -2588,7 +2588,6 @@ _e_gadcon_client_move_go(E_Gadcon_Client *gcc)
if (gcc->state_info.state != E_LAYOUT_ITEM_STATE_POS_DEC)
gcc->state_info.resist = 0;
gcc->state_info.state = E_LAYOUT_ITEM_STATE_POS_DEC;
cx = -cx;
changes = 1;
}