adopted-ember-addons / adopted-ember-addons/ember-sortable

Recalculate handle position if sortable group changes after drag start

Open
#262 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
299
Forks
159
Avg merge
4d 6h
Merged PRs (30d)
4

Description

**Describe the bug**
My sortable group is made up of a series of bootstrap cards (fancy squares) which can become quite long so I'd set these up to collapse on drag start to make them easier to move around.

What seems to happen is that the sort item gets separated from the cursor (see screenshot) making it nearly impossible to drag the items around.

**Expected behaviour**
I would expect the sort item to remain stuck to the cursor.

**Screenshots**
See video screenshot for example:
![sortablebug](https://user-images.githubusercontent.com/2316837/59593351-aca84780-90e9-11e9-8906-7f201463e40d.gif)

**Additional context**
I'm wondering whether an event on the sortable group might be the answer here... and apply this action before actually starting the dragging transitions etc.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.