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

@ -6,7 +6,7 @@
- sessions not added to history when opened
- switch: traversing mode issue
- remote file browser reactivity issue
- encoder: `ticks` default was `auto` instead of `360`
- encoder: broken because `ticks` default was `auto` instead of `360`
- widgets
- **removed** deprecated widgets `multifader`, `multitoggle`, `multipush` and `formula`
- new `JS{{}}` property syntax, allows writing formulas using javascript

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,