Bug happened when child_w < scroller_w and ui-mirroring was on.
The position calculated was smaller than 0 and thus not correct.
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@57194
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
{
API_ENTRY return x;
- Evas_Coord cw, ch, w;
+ Evas_Coord cw, ch, w, ret;
elm_smart_scroller_child_viewport_size_get(obj, &w, NULL);
sd->pan_func.child_size_get(sd->pan_obj, &cw, &ch);
- return (cw - (x + w));
+ ret = (cw - (x + w));
+ return (ret >= 0) ? ret : 0;
}
void