diff --git a/index.js b/index.js index 610f578..ea3fddf 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ - /** * Module dependencies. */ @@ -174,7 +173,7 @@ Spinner.prototype.draw = function(ctx){ // inner circle ctx.strokeStyle = light ? 'rgba(255, 255, 255, .4)' : '#eee'; ctx.beginPath(); - ctx.arc(x, y, rad - 1, 0, Math.PI * 2, true); + ctx.arc(x, y, Math.max( 0.1, rad - 1 ), 0, Math.PI * 2, true); ctx.stroke(); // text