x = x / (sd->pagesize_h);
x = x * (sd->pagesize_h);
}
+ if ((x + w) > cw) x = cw - w;
if (x < minx) x = minx;
- else if ((x + w) > cw) x = cw - w;
return x;
}
y = y / (sd->pagesize_v);
y = y * (sd->pagesize_v);
}
+ if ((y + h) > ch) y = ch - h;
if (y < miny) y = miny;
- else if ((y + h) > ch) y = ch - h;
return y;
}
sd->down.pdy = 0;
}
x = nx;
+ if ((x + w) > cw) x = cw - w;
if (x < minx) x = minx;
- else if ((x + w) > cw) x = cw - w;
y = ny;
+ if ((y + h) > ch) y = ch - h;
if (y < miny) y = miny;
- else if ((y + h) > ch) y = ch - h;
elm_smart_scroller_child_pos_set(obj, x, y);
}
sd->down.pdy = 0;
}
x = nx;
+ if ((x + w) > cw) x = cw - w;
if (x < minx) x = minx;
- else if ((x + w) > cw) x = cw - w;
_smart_scrollto_x(sd, _elm_config->bring_in_scroll_friction, x);
y = ny;
+ if ((y + h) > ch) y = ch - h;
if (y < miny) y = miny;
- else if ((y + h) > ch) y = ch - h;
_smart_scrollto_y(sd, _elm_config->bring_in_scroll_friction, y);
}