forked from enlightenment/efl
elementary: fix float warning in scroller.
This commit is contained in:
parent
33e43c5608
commit
691ba877d7
|
@ -148,7 +148,7 @@ _key_action_move(Evas_Object *obj, const char *params)
|
||||||
cur_weight += ((f_x - c_x) - x) * ((f_x - c_x) - x);
|
cur_weight += ((f_x - c_x) - x) * ((f_x - c_x) - x);
|
||||||
if ((f_y - c_y) > y)
|
if ((f_y - c_y) > y)
|
||||||
cur_weight += ((f_y - c_y) - y) * ((f_y - c_y) - y);
|
cur_weight += ((f_y - c_y) - y) * ((f_y - c_y) - y);
|
||||||
if (cur_weight == 0.0)
|
if (EINA_DBL_CMP(cur_weight, 0.0))
|
||||||
{
|
{
|
||||||
elm_widget_focus_steal(cur, NULL);
|
elm_widget_focus_steal(cur, NULL);
|
||||||
eina_list_free(can_focus_list);
|
eina_list_free(can_focus_list);
|
||||||
|
|
Loading…
Reference in New Issue