sync/link event delegation fix (don't sync yourself, widget!) & xy logscaling fix

This commit is contained in:
jean-emmanuel 2016-03-13 16:20:28 +01:00
parent b1886a101c
commit d98c0588bb
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ module.exports.sync = function() {
if (WIDGETS[id] && WIDGETS[id].length>1) {
var v = widget.getValue()
for (i in WIDGETS[id]) {
if (WIDGETS[id]!=widget) {
if (WIDGETS[id][i]!=widget) {
WIDGETS[id][i].setValue(v,false,false)
}
}
@ -73,7 +73,7 @@ module.exports.sync = function() {
if (WIDGETS_LINKED[id] && WIDGETS_LINKED[id].length>1) {
var v = widget.getValue()
for (i in WIDGETS_LINKED[id]) {
if (WIDGETS_LINKED[id]!=widget) {
if (WIDGETS_LINKED[id][i]!=widget) {
WIDGETS_LINKED[id][i].setValue(v,true,false)
}
}

View file

@ -132,7 +132,7 @@ module.exports.create = function(widgetData,container) {
}
var w = mapToScale(v[0],[range.x.min,range.x.max],[0,100],widgetData.precision,widgetData.logScaleX,true)
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],widgetData.precision,widgetData.logScaleX,false),
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],widgetData.precision,widgetData.logScaleY,true),
widget.updateUi(w,h)