We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 897fb0a + 4e4023e commit dbd5cafCopy full SHA for dbd5caf
draftlogs/6397_fix.md
@@ -0,0 +1 @@
1
+ - Avoid displaying resize cursor on static sliders [[#6397](https://github.com/plotly/plotly.js/pull/6397)]
src/components/sliders/draw.js
@@ -17,6 +17,7 @@ var FROM_TL = alignmentConstants.FROM_TL;
17
var FROM_BR = alignmentConstants.FROM_BR;
18
19
module.exports = function draw(gd) {
20
+ var staticPlot = gd._context.staticPlot;
21
var fullLayout = gd._fullLayout;
22
var sliderData = makeSliderData(fullLayout, gd);
23
@@ -27,7 +28,7 @@ module.exports = function draw(gd) {
27
28
29
sliders.enter().append('g')
30
.classed(constants.containerClassName, true)
- .style('cursor', 'ew-resize');
31
+ .style('cursor', staticPlot ? null : 'ew-resize');
32
33
function clearSlider(sliderOpts) {
34
if(sliderOpts._commandObserver) {
0 commit comments