Skip to content

Commit 91838f9

Browse files
committed
add comment about offsets
1 parent 84427d5 commit 91838f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/rangeslider/draw.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ function setPixelRange(rangeSlider, gd, axisOpts, opts) {
276276
.attr('x', pixelMax)
277277
.attr('width', opts._width - pixelMax);
278278

279-
// ..
279+
// add offset for crispier corners
280+
// https://github.com/plotly/plotly.js/pull/1409
280281
var offset = 0.5;
281282

282283
var xMin = Math.round(clampHandle(pixelMin - hw2)) - offset,

0 commit comments

Comments
 (0)