raster pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=d247868c89ac244f808e3a0246c572f3c97d04e1
commit d247868c89ac244f808e3a0246c572f3c97d04e1 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Wed Nov 18 10:53:25 2020 +0000 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. --- src/bin/e_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_utils.h b/src/bin/e_utils.h index 56a3ecbd9..eac3cfb6d 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; } --
