adjust efm multi-icon drag positioning by the current pan coords
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 5 Nov 2015 20:29:34 +0000 (15:29 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 5 Nov 2015 20:31:16 +0000 (15:31 -0500)
fixes positioning when dragging multiple icons after scrolling

src/bin/e_fm.c

index 52b5c1c..0b6dc3b 100644 (file)
@@ -7716,7 +7716,7 @@ _e_fm2_cb_icon_mouse_move(void *data, Evas *e, Evas_Object *obj EINA_UNUSED, voi
              if (ic->sd->win)
                evas_object_geometry_get(ic->sd->win, &wx, &wy, NULL, NULL);
              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;
              d->x += wx, d->y += wy;