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.
devs/bu5hm4n/mixerfun
Carsten Haitzler 2 years ago
parent d192549e58
commit d247868c89
  1. 3
      src/bin/e_utils.h

@ -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…
Cancel
Save