Skip to content

Commit dbd5caf

Browse files
authored
Merge pull request #6397 from plotly/fix6396-static-slider-cursor
no resize cursor on static sliders
2 parents 897fb0a + 4e4023e commit dbd5caf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: draftlogs/6397_fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Avoid displaying resize cursor on static sliders [[#6397](https://github.com/plotly/plotly.js/pull/6397)]

Diff for: src/components/sliders/draw.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var FROM_TL = alignmentConstants.FROM_TL;
1717
var FROM_BR = alignmentConstants.FROM_BR;
1818

1919
module.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) {

0 commit comments

Comments
 (0)