forked from enlightenment/efl
elm: Fix division by zero in elm_interface_scroller
SVN revision: 75483
This commit is contained in:
parent
f6b7b459fa
commit
379a494a87
|
@ -2682,9 +2682,14 @@ _elm_scroll_hold_animator(void *data)
|
|||
dst_index++;
|
||||
}
|
||||
}
|
||||
if (dst_index)
|
||||
{
|
||||
fx = xsum / dst_index;
|
||||
fy = ysum / dst_index;
|
||||
}
|
||||
else
|
||||
fx = fy = 0;
|
||||
}
|
||||
|
||||
_elm_scroll_content_pos_get(sid->obj, &ox, &oy);
|
||||
if (sid->down.dir_x)
|
||||
|
|
Loading…
Reference in New Issue