Skip to content

Commit 1b9bb8a

Browse files
committed
Adapt cursors for annotation interactions
- Reason: in conjunction with moving shapes [2038], to get a more consistent cursor behavior for movable elements. Use 'move' cursor for movable annotation arrows - Reason: in conjunction with moving shapes [2038], to get a more consistent cursor behavior for movable elements.
1 parent dffe308 commit 1b9bb8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/annotations/draw.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
132132

133133
var annTextGroupInner = annTextGroup.append('g')
134134
.style('pointer-events', textEvents ? 'all' : null)
135-
.call(setCursor, 'default')
135+
.call(setCursor, 'pointer')
136136
.on('click', function() {
137137
gd._dragging = false;
138138

@@ -533,6 +533,7 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
533533
var arrowDrag = arrowGroup.append('path')
534534
.classed('annotation-arrow', true)
535535
.classed('anndrag', true)
536+
.classed('cursor-move', true)
536537
.attr({
537538
d: 'M3,3H-3V-3H3ZM0,0L' + (tailX - arrowDragHeadX) + ',' + (tailY - arrowDragHeadY),
538539
transform: 'translate(' + arrowDragHeadX + ',' + arrowDragHeadY + ')'

0 commit comments

Comments
 (0)