sid->wy = y;
sid->ww = w;
sid->wh = h;
+ if (_paging_is_enabled(sid))
+ {
+ sid->wx = x = (int)(x / sid->pagesize_h) * sid->pagesize_h;
+ sid->ww = w = sid->pagesize_h;
+ sid->wy = y = (int)(y / sid->pagesize_v) * sid->pagesize_v;
+ sid->wh = h = sid->pagesize_v;
+ }
+
if (_elm_scroll_content_region_show_internal(obj, &x, &y, w, h))
{
_elm_scroll_content_pos_set(obj, x, y, EINA_TRUE);
o = elm_widget_parent_get(o);
continue;
}
- else if ((px < ox) && ((px + pw) < (ox + w)))
- {
- // if object is over the viewport to the x axis.
- x += w - pw;
- }
- else if ((py < oy) && ((py + ph) < (oy + h)))
- {
- // if object is over the viewport to the y axis.
- y += h - ph;
- }
ELM_SCROLLABLE_IFACE_GET(o, s_iface);
s_iface->content_pos_get(o, &rx, &ry);
- s_iface->content_viewport_size_get(o, &w, &h);
x += rx + ox - px;
y += ry + oy - py;