sliders: prevent knob's center negative radius, clean knob style

This commit is contained in:
jean-emmanuel 2016-09-19 11:27:15 +02:00
parent e1a1c9bf98
commit fdab98a854
5 changed files with 16 additions and 206 deletions

View file

@ -3857,7 +3857,7 @@ Knob.prototype.draw = function(){
this.ctx.beginPath()
this.ctx.fillStyle = this.colors.raised
this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - (30 + this.margin), 0, Math.PI * 2)
this.ctx.arc(this.width / 2, this.height / 2, Math.max(this.minDimension / 2 - (30 + this.margin) * PXSCALE, 2 * PXSCALE), 0, Math.PI * 2)
this.ctx.fill()
this.ctx.lineWidth = 2 * PXSCALE