diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-11-18 10:53:25 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-11-18 10:53:25 +0000 |
commit | d247868c89ac244f808e3a0246c572f3c97d04e1 (patch) | |
tree | 18f2cbce57ead195665a35931bf46db6a0a6a854 | |
parent | d192549e58253097a77c0fd732f569f23a567926 (diff) | |
download | enlightenment-d247868c89ac244f808e3a0246c572f3c97d04e1.tar.gz |
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.
-rw-r--r-- | src/bin/e_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_utils.h b/src/bin/e_utils.h index 56a3ecbd9f..eac3cfb6d4 100644 --- a/src/bin/e_utils.h +++ b/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; } |