Skip to content

Commit d9cab26

Browse files
mbostockFil
andauthored
Update src/axis.js
Co-authored-by: Philippe Rivière <fil@rezo.net>
1 parent 8769f6d commit d9cab26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/axis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function axis(orient, scale) {
3838
tickSizeInner = 6,
3939
tickSizeOuter = 6,
4040
tickPadding = 3,
41-
offset = typeof window !== "undefined" && window.devicePixelRatio >= 2 ? 0 : 0.5,
41+
offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5,
4242
k = orient === top || orient === left ? -1 : 1,
4343
x = orient === left || orient === right ? "x" : "y",
4444
transform = orient === top || orient === bottom ? translateX : translateY;

0 commit comments

Comments
 (0)