fader: round px to avoid blurry lines

This commit is contained in:
jean-emmanuel 2016-11-22 17:49:46 +01:00
parent 94967bc4f6
commit 72628e7e49

View file

@ -157,8 +157,8 @@ Fader.prototype.percentToCoord = function(percent) {
Fader.prototype.draw = function(){
var d = this.percentToCoord(this.percent),
o = this.percentToCoord(this.valueToPercent(this.originValue))
var d = Math.round(this.percentToCoord(this.percent)),
o = Math.round(this.percentToCoord(this.valueToPercent(this.originValue)))
this.ctx.clearRect(0,0,this.width,this.height)