Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 154ab24

Browse files
committed
allow both dragging and text cell copying
1 parent 6288559 commit 154ab24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/traces/table/plot.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
147147

148148
columnBlock
149149
.style('cursor', function(d) {
150-
return d.dragHandle ? 'ew-resize' : 'auto';
150+
return d.dragHandle ? 'ew-resize' : d.calcdata.scrollbarState.barWiggleRoom ? 'ns-resize' : 'default';
151151
});
152152

153153
var headerColumnBlock = columnBlock.filter(headerBlock);
@@ -432,7 +432,9 @@ function renderCellText(cellTextHolder) {
432432

433433
cellText.enter()
434434
.append('text')
435-
.classed('cellText', true);
435+
.classed('cellText', true)
436+
.style('cursor', function() {return 'auto';})
437+
.on('mousedown', function() {d3.event.stopPropagation();});
436438

437439
return cellText;
438440
}

0 commit comments

Comments
 (0)