Drag handles continue. In progress.

This commit is contained in:
Lauri Ojansivu 2019-09-25 20:49:19 +03:00
parent 03d7fc02ec
commit 872ed4b2f9
2 changed files with 7 additions and 0 deletions

View file

@ -43,6 +43,12 @@ BlazeComponent.extendComponent({
});
}
if (!Utils.isMiniScreen && !showDesktopDragHandles) {
$('.js-minicards').sortable({
handle: 'list-header',
});
}
$cards.sortable({
connectWith: '.js-minicards:not(.js-list-full)',
tolerance: 'pointer',

View file

@ -68,6 +68,7 @@ function initSortable(boardComponent, $listsDom) {
$listsDom.sortable({
tolerance: 'pointer',
helper: 'clone',
handle: '.js-list-header',
items: '.js-list:not(.js-list-composer)',
placeholder: 'list placeholder',
distance: 7,