xy: fix spring prop (#581)

This commit is contained in:
bordun 2019-12-14 20:35:58 +01:00
parent ab64f77203
commit 681f6d264a
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.48.7
- bug fixes
- xy: broken `spring` property
## 0.48.6
- bug fixes

View file

@ -137,7 +137,7 @@ module.exports = class Xy extends Pad {
this.faders.x.trigger('dragend', e)
this.faders.y.trigger('dragend', e)
if (this.getProp('spring')) {
this.setValue([this.faders.x.springValue,this.faders.y.springValue],{sync:true,send:true})
this.setValue([this.faders.x.getSpringValue(),this.faders.y.getSpringValue()],{sync:true,send:true})
} else {
this.batchDraw()
}