mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 19:00:12 +01:00
Fix dragscroll getting stuck on view changes
This commit is contained in:
parent
81b2bce385
commit
30a2e8b990
2 changed files with 5 additions and 0 deletions
|
|
@ -195,6 +195,9 @@ BlazeComponent.extendComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
this.autorun(() => {
|
this.autorun(() => {
|
||||||
|
// Always reset dragscroll on view switch
|
||||||
|
dragscroll.reset();
|
||||||
|
|
||||||
if (Utils.isTouchScreenOrShowDesktopDragHandles()) {
|
if (Utils.isTouchScreenOrShowDesktopDragHandles()) {
|
||||||
$swimlanesDom.sortable({
|
$swimlanesDom.sortable({
|
||||||
handle: '.js-swimlane-header-handle',
|
handle: '.js-swimlane-header-handle',
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import { ReactiveCache } from '/imports/reactiveCache';
|
import { ReactiveCache } from '/imports/reactiveCache';
|
||||||
import { TAPi18n } from '/imports/i18n';
|
import { TAPi18n } from '/imports/i18n';
|
||||||
|
import dragscroll from '@wekanteam/dragscroll';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
const DOWNCLS = 'fa-sort-down';
|
const DOWNCLS = 'fa-sort-down';
|
||||||
|
|
@ -78,6 +79,7 @@ BlazeComponent.extendComponent({
|
||||||
ReactiveCache.getCurrentUser().toggleBoardStar(Session.get('currentBoard'));
|
ReactiveCache.getCurrentUser().toggleBoardStar(Session.get('currentBoard'));
|
||||||
},
|
},
|
||||||
'click .js-auto-width-board'() {
|
'click .js-auto-width-board'() {
|
||||||
|
dragscroll.reset();
|
||||||
ReactiveCache.getCurrentUser().toggleAutoWidth(Utils.getCurrentBoardId());
|
ReactiveCache.getCurrentUser().toggleAutoWidth(Utils.getCurrentBoardId());
|
||||||
},
|
},
|
||||||
'click .js-open-board-menu': Popup.open('boardMenu'),
|
'click .js-open-board-menu': Popup.open('boardMenu'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue