johnny / johnny/jquery-sortable

Sortable handle, drag from the right, not the left

Open
#281 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.5k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

Hello,

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

![draganim2](https://user-images.githubusercontent.com/12030068/89780961-b32a2780-db12-11ea-9f20-9ad8233a66ba.png)

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

$(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);
}
});

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.