Skip to content

Updating list during onDragStart breaks drag & drop detection #107

Description

@MFlisar

I do following:

  • I have a list with items and expandable folders
  • if the user drags a folder, I hide all items outside of folders and also collapse all folders
  • this has the side effect that the list animates as soon as the drag starts

Result

  • the items are not placed correctly initially (see the space on top in the video, the first not dragged folder should animate all the way up)
  • dragging around does not lead to onMove callbacks until I move the item nearly all the way up, only afterwards the onMove is working again
  • the filtering of the list during the drag event should initially trigger onMove because even though I do not drag the item the item in the list is animated up and therefore I move the dragged item down relatively event though I do not move my finger.

Examples

Video 1:

  • folder 1 is dragged, folder 2 should move all the way up (it doesn't correctly)
  • folder 2 move up far enough so that it should trigger an onMove event, this does not happen

Video 2:

  • folder 2 is dragged, folder 1 moves all the way up correctly
  • dragging folder 1 above folder 2 works correctly
video1.webm
video2.mp4

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