2013-01-23 WooHyun Jung
* In _timer_cb of elm_notify, access to sd should be forbidden after smart_callback_call is called.
+
+2013-01-29 Jaehwan Kim
+
+ * Fix the scroll position is calculated by the size of pan object, not the size of scroller.
* When string in entry is changed, access to sd should be forbidden after smart_callback_call is called.
* Fix memory leak of the ctxpopup and callback function to be ctxpopup obj is delivered to.
* In _timer_cb of elm_notify, access to sd should be forbidden after smart_callback_call is called.
+ * Fix the scroll position is calculated by the size of pan object, not the size of scroller.
Elementary 1.7.5
}
}
{
- Evas_Coord minx, miny;
+ Evas_Coord minx, miny, mx, my;
psd->api->pos_min_get(sid->pan_obj, &minx, &miny);
+ psd->api->pos_max_get(sid->pan_obj, &mx, &my);
if (y < miny)
y += (miny - y) *
_elm_config->thumbscroll_border_friction;
- else if (sid->content_info.h <= sid->h)
+ else if (my <= 0)
y += (sid->down.sy - y) *
_elm_config->thumbscroll_border_friction;
- else if ((sid->content_info.h - sid->h + miny) < y)
- y += (sid->content_info.h - sid->h + miny - y) *
+ else if ((my + miny) < y)
+ y += (my + miny - y) *
_elm_config->thumbscroll_border_friction;
if (x < minx)
x += (minx - x) *
_elm_config->thumbscroll_border_friction;
- else if (sid->content_info.w <= sid->w)
+ else if (mx <= 0)
x += (sid->down.sx - x) *
_elm_config->thumbscroll_border_friction;
- else if ((sid->content_info.w - sid->w + minx) < x)
- x += (sid->content_info.w - sid->w + minx - x) *
+ else if ((mx + minx) < x)
+ x += (mx + minx - x) *
_elm_config->thumbscroll_border_friction;
}