Skip to content

Dragged items shift down relatively of the mouse pointer when dragging between 2 vertical grids #1210

Closed
@btry

Description

@btry

Subject of the issue

Hi

Consider that you have 2 gridstacks : the first is on top of the second. If you drag a item from the 2nd grid to the 1st one then the 1st grid will grod to make room for the dragged item. The dragged item moves down and is not under the mouse pointer anymore.

Your environment

  • gridstack 0.6.0
  • Firefox 73.0.1 64 bits (Debian Sid)

Steps to reproduce

Here is an example: https://jsfiddle.net/wjdhn6uy/

Try to pick the item content 3 or content 4 and drop it in the first grid. See how the item captured by the drag and drop moves down when the first grid grows.

Expected behaviour

The dragged item should stay under the mouse pointer when the source grid (the 2nd) moves down due to the increased height of the first one.

Actual behaviour

The dragged item moves down relatively of the mouse pointer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions