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
c7cd4178a7
commit
88726e8df3
|
@ -7688,7 +7688,7 @@ _e_fm2_cb_icon_mouse_move(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNU
|
||||||
d = e_drag_new(c, 0, 0, drag_types, 1,
|
d = e_drag_new(c, 0, 0, drag_types, 1,
|
||||||
sel, sel_length, NULL, _e_fm2_cb_drag_finished);
|
sel, sel_length, NULL, _e_fm2_cb_drag_finished);
|
||||||
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;
|
||||||
#ifndef HAVE_WAYLAND_ONLY
|
#ifndef HAVE_WAYLAND_ONLY
|
||||||
|
|
Loading…
Reference in New Issue