Dragscroll possible, scroll the screen with the mouse at desktop view

- click on a empty list area and drag the view left/right to scroll
This commit is contained in:
Martin Filser 2022-07-16 09:38:41 +02:00
parent f9654d17d5
commit c76959ff25
7 changed files with 12 additions and 5 deletions

View file

@ -18,7 +18,7 @@ template(name="boardBody")
else
.board-wrapper(class=currentBoard.colorClass)
+sidebar
.board-canvas.js-swimlanes(
.board-canvas.js-swimlanes.dragscroll(
class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
class="{{#if draggingActive.get}}is-dragging-active{{/if}}")

View file

@ -1,5 +1,6 @@
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
import dragscroll from 'dragscroll';
const subManager = new SubsManager();
const { calculateIndex } = Utils;
@ -219,6 +220,7 @@ BlazeComponent.extendComponent({
boardComponent.openNewListForm();
}
dragscroll.reset();
Utils.setBackgroundImage();
},