fader: fix broken horizontal + not compact mode (missing argument in a drawing function)

This commit is contained in:
jean-emmanuel 2016-10-11 22:56:20 +02:00
parent 0625e529c1
commit b3b2660470
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,9 @@
# Changelog
## next
## 0.8.1
- bug
- broken `fader` with `horizontal` set to `true` and `compact` set to `false`
- widgets
- remove margins from `plots`
- added `origin` options to `plots`

View file

@ -192,12 +192,12 @@ Fader.prototype.draw = function(){
this.ctx.save()
this.ctx.globalAlpha = 0.3
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 10 * PXSCALE, Math.PI * 2)
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 10 * PXSCALE, Math.PI * 2, false)
this.ctx.fill()
this.ctx.restore()
this.ctx.beginPath()
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 4 * PXSCALE, Math.PI * 2)
this.ctx.arc(d + this.margin * PXSCALE, this.height / 2, 4 * PXSCALE, Math.PI * 2, false)
this.ctx.fill()
}