Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Dragging element in between nested lists #22

Closed
aartrost opened this Issue · 4 comments

2 participants

@aartrost

Hi Johnny,

When dragging elements it's hard to position them in between two nested lists. As seen in this Fiddle: http://jsfiddle.net/AWNaB/.

The only way to do it now is by moving the mouse all the way to the left and out of the parent ol. Is there a way to do this without having to move the mouse to the left?

I know that setting "pullPlaceholder: false" does fix this issue. But doing that breaks dropping items in empty lists. Unfortunately I need both...

@johnny
Owner

The idea is, that once you are inside a list item, you only sort within it. But I must admit that the current behavior in your example is counterintuitive.

Two solutions spring to mind:
(1) In the tiny space between the lists, the placeholder should move to the left (this is a bug)
(2) Support negative values for the tolerance option or numeric values for the pullPlaceholder option to widen the space provided by (1)

What do you think?

@aartrost

Hi Johnny,

Thanks for the quick response. The second option sounds great! Trying to pry a list item in between that space seems rather frustrating.

The behavior that occurs when disabling the pullPlaceholder option seems like it should be. If numeric values for pullPlaceholder can be a fix for both dropping in empty nested lists and dropping in between nested lists I'd be very happy!

@johnny johnny closed this issue from a commit
@johnny tolerance option accepts negative values
Items with child containers no longer use sameResultBox

closes #22
e0ecadb
@johnny johnny closed this in e0ecadb
@johnny
Owner

I decided to use the tolerance option. Use negative values to widen the space.

@aartrost

Works great, thanks! The only problem left is that I can't find a donate button anywhere...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.