fader: round px to avoid blurry lines
This commit is contained in:
parent
94967bc4f6
commit
72628e7e49
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue