Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

collision improvement: dragging small item over large doesn't swap until large 50% mid point #1677

Closed
@adumesny

Description

Subject of the issue

dragging small item over large one isn't ideal.

part of #1094

Your environment

  • h5 v4.0.1 chrome

Steps to reproduce

gridstack.js/spec/e2e/html/141_1534_swap.html#

issue

right now we check for 50% mid point before swapping on the drop over area, but if you drag a small item over a much larger one, it would be nice to do the swap if EITHER is 50% covered (or maybe entire small), which would also require not only a collide node BUT also a top/bottom/left/right are to let us know where to put dragged item (for after cases)

20210320_152208.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /