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:
Carsten Haitzler 2020-11-18 10:53:25 +00:00
parent d192549e58
commit d247868c89
1 changed files with 2 additions and 1 deletions

View File

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