Skip to content

Delay redraw until drop. #703

@sakoht

Description

@sakoht

I’m using drag and drop for both rows and columns in a large “heatmap” presented as an html table for a scientific application. The animation of the drag makes everything slow and jerky as the table redraws too much.

I’d like to have it, when dragging:

  • gray out the dragged element instead of hide it
  • visually highlight the drop target instead of temporarily inserting it

Then actually move the element only after drop has occurred.

Is this possible with dragula?

Note: When dragging the table columns I am just dragging the headers I have custom drip code redraw the tbody, but the browser slightly changes the whole column during the drag as the headers move around, so it would benefit from the same “delayed visual drop” as the rows.

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