diff --git a/jquery.flot.crosshair.js b/jquery.flot.crosshair.js index c5df9d9..9aaf677 100644 --- a/jquery.flot.crosshair.js +++ b/jquery.flot.crosshair.js @@ -139,7 +139,7 @@ The plugin also adds four public methods: ctx.translate(plotOffset.left, plotOffset.top); if (crosshair.x != -1) { - var adj = plot.getOptions().crosshair.lineWidth % 2 === 0 ? 0 : 0.5; + var adj = plot.getOptions().crosshair.lineWidth % 2 ? 0.5 : 0; ctx.strokeStyle = c.color; ctx.lineWidth = c.lineWidth;