ember-drag-drop icon indicating copy to clipboard operation
ember-drag-drop copied to clipboard

Sorting between two dragging targets doesn't work

Open PatKoo opened this issue 8 years ago • 4 comments

I am working on a designer with a set of questions in the left field, and an open editor to move these questions into on the right. To give an idea, it currently looks like this.

image

Now if I can sort the two questions in the right field just fine. If i drag a question from the left field to the right however, it will automatically drop the question if i mouse over an already existing question in the field. What i want is to be able to drag a question from the left field over the questions in the right field, and drop it whenever i let go off my mouse.

Currently i run into the problem described above. I can also remove the sortingScope on the left field, in which case the question always drops on the bottom of the right field when dragged, which is also not what i want. I have seen a couple of similar issues, but i couldn't quite make out if someone ran into thisone yet, so apologies if this is a duplicate.

If anyone has a workaround available i would appreciate that too!

PatKoo avatar Mar 21 '17 13:03 PatKoo

Unfortunately it's a known issue at this time, there is no workaround for it. I just need to make some changes to the addon to allow dropping outside of a existing item.

dgavey avatar Mar 21 '17 13:03 dgavey

Alright. Thank you for your reply.

PatKoo avatar Mar 21 '17 13:03 PatKoo

Any recommendations how to solve the dragging between targets? I'm trying to use jquery-ui sortable but always getting this error: ember.debug.js:26513 Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

janfryauf avatar Aug 14 '17 10:08 janfryauf

Separate issue. Would be better if you opened another issue. This library isn't meant to be used with jquery-ui-sortable. It has it's own sort capabilities. I haven't seen that particular error before. Can't really help you without a reproduction.

dgavey avatar Aug 14 '17 13:08 dgavey