File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -525,11 +525,23 @@ proto.updateTraces = function(fullData, calcData) {
525
525
} ;
526
526
527
527
proto . updateFx = function ( dragmode ) {
528
+ // switch to svg interactions in lasso/select mode
528
529
if ( dragmode === 'lasso' || dragmode === 'select' ) {
529
530
this . mouseContainer . style [ 'pointer-events' ] = 'none' ;
530
531
} else {
531
532
this . mouseContainer . style [ 'pointer-events' ] = 'auto' ;
532
533
}
534
+
535
+ // set proper cursor
536
+ if ( dragmode === 'pan' ) {
537
+ this . mouseContainer . style . cursor = 'move' ;
538
+ }
539
+ else if ( dragmode === 'zoom' ) {
540
+ this . mouseContainer . style . cursor = 'crosshair' ;
541
+ }
542
+ else {
543
+ this . mouseContainer . style . cursor = null ;
544
+ }
533
545
} ;
534
546
535
547
proto . emitPointAction = function ( nextSelection , eventType ) {
You can’t perform that action at this time.
0 commit comments