knob: fix tiny size with zoom

This commit is contained in:
jean-emmanuel 2017-07-30 12:33:30 +02:00
parent e55f9da475
commit 6da5d689cd

View file

@ -142,7 +142,7 @@ module.exports = class Knob extends _sliders_base {
if (!this.width || !this.height) return
var tiny = this.minDimension < 45,
var tiny = this.minDimension < 45 * PXSCALE,
margin = tiny ? 0 : 5 * PXSCALE
var o = this.percentToAngle(this.valueToPercent(this.originValue)),