Skip to content

Ensure we can drag to end of list #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

jthibeaux
Copy link

I ran across what appeared to be a bug preventing me from being able to drag to the end of the list. Solution that appears to work is ensuring that when the target element is at the end, always insert the placeholder after. Seems to work and I have switched to using my fork in the meantime. This problem is best illustrated when attempting to drag the second item in the list to the last item.

@jthibeaux
Copy link
Author

OK, so... not surprisingly, this appears to be causing an issue at the other end. Need to think about this a bit more...

@jthibeaux
Copy link
Author

OK, found something that works. While I am not certain this is the best solution, I figure putting this out there might be useful for anyone else who runs into the same issue.

Also, it seems like I was having more of an issue with it when I am not using a strict vertical list, but when elements are lined up as floats.

@jthibeaux
Copy link
Author

Addressing

#404

@@ -571,6 +584,7 @@
* cancel the long touch and its timer.
*/
longTouchCancel = function() {
element.remmoveClass(sortableConfig.touching);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have 2 "m"s here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants