Merge branch 'feature-drag-handle'

This commit is contained in:
Lauri Ojansivu 2019-09-28 14:55:09 +03:00
commit 75dc5f226c
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({ $cards.sortable({
connectWith: '.js-minicards:not(.js-list-full)', connectWith: '.js-minicards:not(.js-list-full)',
tolerance: 'pointer', tolerance: 'pointer',

View file

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