Add remove cursor to buttons dragged out of the top bar

This commit is contained in:
Quincy Morgan
2019-03-05 18:13:10 -05:00
parent 651d5432f2
commit 6428a9055a
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -498,6 +498,9 @@ button[disabled].action:hover {
.tool-group button.dragging .tooltip {
display: none;
}
.tool-group button.dragging.removing {
cursor: url(img/cursor-select-remove.png), pointer;
}
button.save .count {
display: inline-block;
+4 -2
View File
@@ -186,13 +186,15 @@ export function uiModes(context) {
d3_select(this)
.classed('dragging', true)
.classed('removing', y > 50)
.style('transform', 'translate(' + x + 'px, ' + y + 'px)');
})
.on('end', function(d) {
d3_select(this)
.style('transform', null)
.classed('dragging', false);
.classed('dragging', false)
.classed('removing', false)
.style('transform', null);
var y = d3_event.y - dragOrigin.y;
if (y > 50) {