Issue #310 on drage keep ew-resize cursor

master-patched
Bob Monteverde 12 years ago
parent 4ad3c2e6f3
commit 739e385fce

@ -1652,7 +1652,10 @@ nv.models.cumulativeLineChart = function() {
.on('drag', dragMove)
.on('dragend', dragEnd);
function dragStart(d,i) {}
function dragStart(d,i) {
d3.select(chart.container)
.style('cursor', 'ew-resize');
}
function dragMove(d,i) {
d.x += d3.event.dx;
@ -1663,6 +1666,8 @@ nv.models.cumulativeLineChart = function() {
}
function dragEnd(d,i) {
d3.select(chart.container)
.style('cursor', 'auto');
chart.update();
}

10
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -66,7 +66,10 @@ nv.models.cumulativeLineChart = function() {
.on('drag', dragMove)
.on('dragend', dragEnd);
function dragStart(d,i) {}
function dragStart(d,i) {
d3.select(chart.container)
.style('cursor', 'ew-resize');
}
function dragMove(d,i) {
d.x += d3.event.dx;
@ -77,6 +80,8 @@ nv.models.cumulativeLineChart = function() {
}
function dragEnd(d,i) {
d3.select(chart.container)
.style('cursor', 'auto');
chart.update();
}

Loading…
Cancel
Save