mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
set reorder distance to 5px
This commit is contained in:
@@ -47,6 +47,7 @@ habitrpg.directive('habitrpgSortable', ['User', function(User) {
|
|||||||
return function($scope, element, attrs, ngModel) {
|
return function($scope, element, attrs, ngModel) {
|
||||||
$(element).sortable({
|
$(element).sortable({
|
||||||
axis: "y",
|
axis: "y",
|
||||||
|
distance: 5,
|
||||||
start: function (event, ui) {
|
start: function (event, ui) {
|
||||||
ui.item.data('startIndex', ui.item.index());
|
ui.item.data('startIndex', ui.item.index());
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user