Skip to content

Dropzone boundaries are cached and dont change on dynamic pages #1071

Description

@shadowtsw

Hello,

We use interact to build pages via drag and drop. For this approach we simply use .draggable() and .dropzone().

We figured out that the target boundaries are cached internally before drag starts.

Our page and container boundaries can change for two reasons:

  • user can scroll during drag
  • preview item inside container leads to expand containers size

If this happens, the dropzone boundaries are not equal to visible elements. Its not possible to drop on related targets anymore. Any approach to rebuild dropzones results in drag cancel (while user is holding draggable).

Is there any possibility to update or reset the boundaries cache ? (e.g. on scroll end event)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions