forked from enlightenment/enlightenment
adjust efm multi-icon drag positioning by the current pan coords
fixes positioning when dragging multiple icons after scrolling
This commit is contained in:
parent
f343a5403d
commit
76276a6c7c
|
@ -7716,7 +7716,7 @@ _e_fm2_cb_icon_mouse_move(void *data, Evas *e, Evas_Object *obj EINA_UNUSED, voi
|
||||||
if (ic->sd->win)
|
if (ic->sd->win)
|
||||||
evas_object_geometry_get(ic->sd->win, &wx, &wy, NULL, NULL);
|
evas_object_geometry_get(ic->sd->win, &wx, &wy, NULL, NULL);
|
||||||
if (layout)
|
if (layout)
|
||||||
d->x = ic->sd->x, d->y = ic->sd->y;
|
d->x = ic->sd->x - ic->sd->pos.x, d->y = ic->sd->y - ic->sd->pos.y;
|
||||||
else
|
else
|
||||||
d->x = ic->x + ic->sd->x - ic->sd->pos.x, d->y = ic->y + ic->sd->y - ic->sd->pos.y;
|
d->x = ic->x + ic->sd->x - ic->sd->pos.x, d->y = ic->y + ic->sd->y - ic->sd->pos.y;
|
||||||
d->x += wx, d->y += wy;
|
d->x += wx, d->y += wy;
|
||||||
|
|
Loading…
Reference in New Issue