File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1+ - Avoid displaying resize cursor on static sliders [[ #6397 ] ( https://github.com/plotly/plotly.js/pull/6397 )]
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var FROM_TL = alignmentConstants.FROM_TL;
1717var FROM_BR = alignmentConstants . FROM_BR ;
1818
1919module . exports = function draw ( gd ) {
20+ var staticPlot = gd . _context . staticPlot ;
2021 var fullLayout = gd . _fullLayout ;
2122 var sliderData = makeSliderData ( fullLayout , gd ) ;
2223
@@ -27,7 +28,7 @@ module.exports = function draw(gd) {
2728
2829 sliders . enter ( ) . append ( 'g' )
2930 . classed ( constants . containerClassName , true )
30- . style ( 'cursor' , 'ew-resize' ) ;
31+ . style ( 'cursor' , staticPlot ? null : 'ew-resize' ) ;
3132
3233 function clearSlider ( sliderOpts ) {
3334 if ( sliderOpts . _commandObserver ) {
You can’t perform that action at this time.
0 commit comments