BigW Consortium Gitlab

Commit 67d9e922 by Phil Hughes

Hides tooltips when dragging issues

parent 12fe6a6f
......@@ -63,6 +63,10 @@
Store.moving.issue = card.issue;
Store.moving.list = card.list;
$('.has-tooltip').tooltip('hide')
.tooltip('disable');
document.body.classList.add('is-dragging');
},
onAdd: (e) => {
gl.issueBoards.BoardsStore.moveIssueToList(Store.moving.list, this.list, Store.moving.issue);
......
......@@ -12,9 +12,12 @@
scrollSensitivity: 100,
scrollSpeed: 20,
onStart () {
$('.has-tooltip').tooltip('hide')
.tooltip('disable');
document.body.classList.add('is-dragging');
},
onEnd () {
$('.has-tooltip').tooltip('enable');
document.body.classList.remove('is-dragging');
}
}
......
......@@ -8,9 +8,13 @@
}
.is-dragging {
// Important because plugin sets inline CSS
opacity: 1!important;
* {
cursor: -webkit-grabbing;
cursor: grabbing;
// !important to make sure no style can override this when dragging
cursor: -webkit-grabbing!important;
cursor: grabbing!important;
}
}
......@@ -254,11 +258,6 @@
opacity: 0.3;
}
.is-dragging {
// Important because plugin sets inline CSS
opacity: 1!important;
}
.card {
position: relative;
width: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment