encoder: force ticks to 360 if not a number

This commit is contained in:
jean-emmanuel 2019-04-08 13:41:17 +02:00
parent 8603fb8741
commit 3fbd5823f2
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ module.exports = class Encoder extends Widget {
`})
this.wrapper = DOM.get(this.widget, '.wrapper')[0]
this.ticks = Math.abs(parseInt(this.getProp('ticks')))
this.ticks = Math.abs(parseInt(this.getProp('ticks')) || 360)
this.knob = new EncoderKnob({props:{
label:false,