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

Sortable handle, drag from the right, not the left #281

Open
faridguzman91 opened this issue Aug 10, 2020 · 0 comments
Open

Sortable handle, drag from the right, not the left #281

faridguzman91 opened this issue Aug 10, 2020 · 0 comments

Comments

@faridguzman91
Copy link

Hello,

I am trying to make the drag animation start at the right where the handle also is

draganim2

i am using this script, do i need to fix offset?

<script> $(function () { $("ol.leerrails_list").sortable(); }); $("ol.leerrails_list").sortable({ group: 'no-drop', handle: 'i.fa-sort', onDragStart: function ($item, container, _super) { // Duplicate items of the no drop area if(!container.options.drop) $item.clone().insertAfter($item); _super($item, container); } }); </script>
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

No branches or pull requests

1 participant