Skip to content

Commit 79512b4

Browse files
alexcjohnsonetpinard
authored andcommitted
round range slider grabber y values and container transform
1 parent 30eda55 commit 79512b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/rangeslider/draw.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ module.exports = function(gd) {
9595
opts._height = (fullLayout.height - margin.b - margin.t) * opts.thickness;
9696
opts._offsetShift = Math.floor(opts.borderwidth / 2);
9797

98-
var x = margin.l + (graphSize.w * domain[0]);
98+
var x = Math.round(margin.l + (graphSize.w * domain[0]));
9999

100-
var y = (
100+
var y = Math.round(
101101
margin.t + graphSize.h * (1 - oppDomain[0]) +
102102
tickHeight +
103103
opts._offsetShift + constants.extraPad
@@ -492,8 +492,8 @@ function drawGrabbers(rangeSlider, gd, axisOpts, opts) {
492492
};
493493

494494
var handleDynamicAttrs = {
495-
y: opts._height / 4,
496-
height: opts._height / 2,
495+
y: Math.round(opts._height / 4),
496+
height: Math.round(opts._height / 2),
497497
};
498498

499499
var handleMin = grabberMin.selectAll('rect.' + constants.handleMinClassName)

0 commit comments

Comments
 (0)