File tree 2 files changed +3
-1
lines changed
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;
17
17
var FROM_BR = alignmentConstants . FROM_BR ;
18
18
19
19
module . exports = function draw ( gd ) {
20
+ var staticPlot = gd . _context . staticPlot ;
20
21
var fullLayout = gd . _fullLayout ;
21
22
var sliderData = makeSliderData ( fullLayout , gd ) ;
22
23
@@ -27,7 +28,7 @@ module.exports = function draw(gd) {
27
28
28
29
sliders . enter ( ) . append ( 'g' )
29
30
. classed ( constants . containerClassName , true )
30
- . style ( 'cursor' , 'ew-resize' ) ;
31
+ . style ( 'cursor' , staticPlot ? null : 'ew-resize' ) ;
31
32
32
33
function clearSlider ( sliderOpts ) {
33
34
if ( sliderOpts . _commandObserver ) {
You can’t perform that action at this time.
0 commit comments