dnd resist - fix missing sque for dist compare and have minimum of 8
if finger size is small... really small, then limit minimum to 8.
This commit is contained in:
parent
d192549e58
commit
d247868c89
|
@ -97,7 +97,8 @@ is_dragged(int dx, int dy)
|
|||
{
|
||||
Evas_Coord resist = elm_config_finger_size_get() / 2;
|
||||
|
||||
if ((dx * dx) + (dy * dy) > resist) return EINA_TRUE;
|
||||
if (resist < 8) resist = 8;
|
||||
if (((dx * dx) + (dy * dy)) > (resist * resist)) return EINA_TRUE;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue