Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
no resize cursor on static sliders
  • Loading branch information
archmoj committed Dec 14, 2022
commit 449aa8be2e02c2961d4cd394d3ccab59234fcdcd
3 changes: 2 additions & 1 deletion src/components/sliders/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var FROM_TL = alignmentConstants.FROM_TL;
var FROM_BR = alignmentConstants.FROM_BR;

module.exports = function draw(gd) {
var staticPlot = gd._context.staticPlot;
var fullLayout = gd._fullLayout;
var sliderData = makeSliderData(fullLayout, gd);

Expand All @@ -27,7 +28,7 @@ module.exports = function draw(gd) {

sliders.enter().append('g')
.classed(constants.containerClassName, true)
.style('cursor', 'ew-resize');
.style('cursor', staticPlot ? null : 'ew-resize');

function clearSlider(sliderOpts) {
if(sliderOpts._commandObserver) {
Expand Down