forked from enlightenment/efl
parent
2c85ab389f
commit
921c9099a3
|
@ -648,6 +648,7 @@ _edje_part_recalc_single(Edje *ed,
|
||||||
else if (ep->part->dragable.count_x > 0)
|
else if (ep->part->dragable.count_x > 0)
|
||||||
{
|
{
|
||||||
step = (confine_to->w - params->w) / ep->part->dragable.count_x;
|
step = (confine_to->w - params->w) / ep->part->dragable.count_x;
|
||||||
|
if (step < 1) step = 1;
|
||||||
params->x = confine_to->x +
|
params->x = confine_to->x +
|
||||||
((offset / step) * step);
|
((offset / step) * step);
|
||||||
}
|
}
|
||||||
|
@ -669,6 +670,7 @@ _edje_part_recalc_single(Edje *ed,
|
||||||
else if (ep->part->dragable.count_y > 0)
|
else if (ep->part->dragable.count_y > 0)
|
||||||
{
|
{
|
||||||
step = (confine_to->h - params->h) / ep->part->dragable.count_y;
|
step = (confine_to->h - params->h) / ep->part->dragable.count_y;
|
||||||
|
if (step < 1) step = 1;
|
||||||
params->y = confine_to->y +
|
params->y = confine_to->y +
|
||||||
((offset / step) * step);
|
((offset / step) * step);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue