Skip to content
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

Expose old & new element index on drag&drop #154

Merged
merged 1 commit into from
Dec 8, 2014
Merged

Expose old & new element index on drag&drop #154

merged 1 commit into from
Dec 8, 2014

Conversation

dandv
Copy link
Contributor

@dandv dandv commented Dec 8, 2014

Fix #148.

The while (e = e.previousElementSibling) ++startIndex is very fast: 1.3ms for dragging the last of a 50,000-element list in Chrome on a Core i5.

Might need testing on touch devices; please review. Thanks!

@dandv
Copy link
Contributor Author

dandv commented Dec 8, 2014

Should I amend this commit to update the version in bower.json to 0.7.2, or do you want to do that?

@RubaXa
Copy link
Collaborator

RubaXa commented Dec 8, 2014

Looks OK, change the version, run grunt and update PR.

@dandv
Copy link
Contributor Author

dandv commented Dec 8, 2014

Done.

@RubaXa
Copy link
Collaborator

RubaXa commented Dec 8, 2014

Great!

RubaXa added a commit that referenced this pull request Dec 8, 2014
Expose old & new element index on drag&drop
@RubaXa RubaXa merged commit a5f5e32 into dev Dec 8, 2014
@dandv dandv deleted the indexes branch December 8, 2014 06:50
dandv added a commit that referenced this pull request Dec 8, 2014
Fix #156 and also returning correct indexes if a drag handle is present (#154).
dandv added a commit that referenced this pull request Dec 8, 2014
Fix #156 and also returning correct indexes if a drag handle is present (#154).
dandv added a commit that referenced this pull request Dec 8, 2014
Fix #156 and also returning correct indexes if a drag handle is present (#154).
dandv added a commit that referenced this pull request Dec 8, 2014
Fix #156 and also returning correct indexes if a drag handle is present (#154).
dandv added a commit that referenced this pull request Dec 8, 2014
Fix #156 and also returning correct indexes if a drag handle is present (#154).
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