encoder: force ticks to 360 if not a number
This commit is contained in:
parent
1bd40b7d8d
commit
0ddd29f3bd
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue