Checklist and Checklist-Items on mobile view scroll the screen when drag/drop them to top/bottom

This commit is contained in:
Martin Filser 2021-10-29 17:06:12 +02:00
parent f74fab64b6
commit 70777cfce8
2 changed files with 8 additions and 6 deletions

View file

@ -13,7 +13,7 @@ function initSorting(items) {
appendTo: 'parent',
distance: 7,
placeholder: 'checklist-item placeholder',
scroll: false,
scroll: true,
start(evt, ui) {
ui.placeholder.height(ui.helper.height());
EscapeActions.clickExecute(evt.target, 'inlinedForm');
@ -55,7 +55,7 @@ BlazeComponent.extendComponent({
return Meteor.user() && Meteor.user().isBoardMember();
}
// Disable sorting if the current user is not a board member or is a miniscreen
// Disable sorting if the current user is not a board member
self.autorun(() => {
const $itemsDom = $(self.itemsDom);
if ($itemsDom.data('uiSortable') || $itemsDom.data('sortable')) {