adjust efm multi-icon drag positioning by the current pan coords

fixes positioning when dragging multiple icons after scrolling
This commit is contained in:
Mike Blumenkrantz 2015-11-05 15:29:34 -05:00
parent c7cd4178a7
commit 88726e8df3
1 changed files with 1 additions and 1 deletions

View File

@ -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,
sel, sel_length, NULL, _e_fm2_cb_drag_finished);
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
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