forked from enlightenment/enlightenment
limit scroll so you dont go off the ends
SVN revision: 23950
This commit is contained in:
parent
6c4b19d5d0
commit
684da81271
|
@ -211,6 +211,10 @@ e_fm2_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
|
|||
if (!sd) return; // safety
|
||||
if (!evas_object_type_get(obj)) return; // safety
|
||||
if (strcmp(evas_object_type_get(obj), "e_fm")) return; // safety
|
||||
if (x > (sd->max.w - sd->w)) x = sd->max.w - sd->w;
|
||||
if (x < 0) x = 0;
|
||||
if (y > (sd->max.h - sd->h)) y = sd->max.h - sd->h;
|
||||
if (y < 0) y = 0;
|
||||
if ((sd->pos.x == x) && (sd->pos.y == y)) return;
|
||||
sd->pos.x = x;
|
||||
sd->pos.y = y;
|
||||
|
|
|
@ -584,7 +584,7 @@ _e_test_internal(E_Container *con)
|
|||
|
||||
evas_object_focus_set(o, 1);
|
||||
}
|
||||
#elif 0
|
||||
#elif 1
|
||||
static void
|
||||
_e_test_internal(E_Container *con)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue