set reorder distance to 5px

This commit is contained in:
Matteo Pagliazzi
2013-09-21 16:50:14 +02:00
parent 332b4bd899
commit 3fb6f25c42

View File

@@ -47,6 +47,7 @@ habitrpg.directive('habitrpgSortable', ['User', function(User) {
return function($scope, element, attrs, ngModel) {
$(element).sortable({
axis: "y",
distance: 5,
start: function (event, ui) {
ui.item.data('startIndex', ui.item.index());
},