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) {
525525} ;
526526
527527proto . updateFx = function ( dragmode ) {
528+ // switch to svg interactions in lasso/select mode
528529 if ( dragmode === 'lasso' || dragmode === 'select' ) {
529530 this . mouseContainer . style [ 'pointer-events' ] = 'none' ;
530531 } else {
531532 this . mouseContainer . style [ 'pointer-events' ] = 'auto' ;
532533 }
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+ }
533545} ;
534546
535547proto . emitPointAction = function ( nextSelection , eventType ) {
You can’t perform that action at this time.
0 commit comments